This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
forked from hashicorp/terraform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* hashicorp#19424 This adds the flag `-allow-undeclared-vars` which skips the parsing of variables, which would otherwise generate an Error/Warning when a `-var` is passed to `apply`/`plan` without being defined in a variable block Without flag: ``` $ terraform plan -var foo=bar Error: Value for undeclared variable A variable named "foo" was assigned on the command line, but the root module does not declare a variable of that name. To use this value, add a "variable" block to the configuration. ``` With flag: ``` $ terraform apply -var foo=bar -allow-undeclared-vars Refreshing Terraform state in-memory prior to plan... ... ```
- Loading branch information
Showing
4 changed files
with
20 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters