A script must have executable permissions.

Why:

* The current example for passing arguments to a local script does not
  include making the uploaded file executable.

This change addresses the need by:

* Add a step to make the uploaded script executable to the example
  showing how to pass arguments to an uploaded script.
This commit is contained in:
Daniel Paul Searles 2015-10-09 11:27:38 -07:00
parent 295c9245bb
commit fd2d9371e9
1 changed files with 4 additions and 1 deletions

View File

@ -63,7 +63,10 @@ resource "aws_instance" "web" {
}
provisioner "remote-exec" {
inline = ["/tmp/script.sh args"]
inline = [
"chmod +x /tmp/script.sh",
"/tmp/script.sh args"
]
}
}
```