Merge pull request #30969 from hashicorp/add-note-about-spaces

Add warning about spaces in variable value assignment
This commit is contained in:
Laura Pacilio 2022-05-09 10:34:30 -04:00 committed by GitHub
commit 98f9d646ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,6 +167,8 @@ we recommend using the `-var-file` option instead, and write your actual values
in a separate file so that Terraform can parse them directly, rather than
interpreting the result of your shell's parsing.
~> **Warning:** Terraform will error if you include a space before or after the equals sign (e.g., `-var "length = 2"`).
To use `-var` on a Unix-style shell on a system like Linux or macOS we
recommend writing the option argument in single quotes `'` to ensure the
shell will interpret the value literally: