Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to copy a file after instance launch by auto scaling group #3

Open
ghost opened this issue Aug 22, 2018 · 0 comments
Open

how to copy a file after instance launch by auto scaling group #3

ghost opened this issue Aug 22, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 22, 2018

i know its silly to create a another ticket, but seriously i am burning my nights to solve this issue but still did not get any success. for every solution i found on internet it require instance ip to make connection and do some changes.

# Copies the file as the root user using SSH
provisioner "file" {
  source      = "conf/myapp.conf"
  destination = "/etc/myapp.conf"

  connection {
    type     = "ssh"
    user     = "root"
    password = "${var.root_password}"
  }
}
@ghost ghost changed the title old issue how to copy a file after instance launch by auto scaling group how to copy a file after instance launch by auto scaling group Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants