From fd2d9371e9fe0b47d95d6206e0718e6c3101383c Mon Sep 17 00:00:00 2001 From: Daniel Paul Searles Date: Fri, 9 Oct 2015 11:27:38 -0700 Subject: [PATCH] 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. --- website/source/docs/provisioners/remote-exec.html.markdown | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/source/docs/provisioners/remote-exec.html.markdown b/website/source/docs/provisioners/remote-exec.html.markdown index d771e5586..7ce46c684 100644 --- a/website/source/docs/provisioners/remote-exec.html.markdown +++ b/website/source/docs/provisioners/remote-exec.html.markdown @@ -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" + ] } } ```