Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Terraform
Commits
3eea9d70
Commit
3eea9d70
authored
3 years ago
by
Laura Pacilio
Browse files
Options
Download
Email Patches
Plain Diff
Add warning about spaces in variable value assignment
parent
488853be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
website/docs/cli/commands/plan.mdx
+2
-0
website/docs/cli/commands/plan.mdx
with
2 additions
and
0 deletions
+2
-0
website/docs/cli/commands/plan.mdx
+
2
-
0
View file @
3eea9d70
...
@@ -167,6 +167,8 @@ we recommend using the `-var-file` option instead, and write your actual values
...
@@ -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
in a separate file so that Terraform can parse them directly, rather than
interpreting the result of your shell's parsing.
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
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
recommend writing the option argument in single quotes `'` to ensure the
shell will interpret the value literally:
shell will interpret the value literally:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help