From 5fa51e099cec69eb5c56dba9a6b0abe7e0698db0 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Fri, 19 Oct 2018 15:50:24 -0700 Subject: [PATCH] update docs to fix windows single-quoting problem --- website/source/docs/templates/user-variables.html.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/source/docs/templates/user-variables.html.md b/website/source/docs/templates/user-variables.html.md index 9faf40d0a..c88e27997 100644 --- a/website/source/docs/templates/user-variables.html.md +++ b/website/source/docs/templates/user-variables.html.md @@ -225,6 +225,12 @@ As you can see, the `-var` flag can be specified multiple times in order to set multiple variables. Also, variables set later on the command-line override any earlier set variable of the same name. +**warning** +If you are calling Packer from cmd.exe, you should double-quote your variables +rather than single-quoting them. For example: + +`packer build -var "aws_secret_key=foo" template.json` + ### From a File Variables can also be set from an external JSON file. The `-var-file` flag reads