-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6298 from hashicorp/b-type-check-unset
core: Do not type check unset variables
- Loading branch information
Showing
4 changed files
with
42 additions
and
1 deletion.
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
12 changes: 12 additions & 0 deletions
12
terraform/test-fixtures/plan-module-var-with-default-value/inner/main.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
variable "im_a_string" { | ||
type = "string" | ||
} | ||
|
||
variable "service_region_ami" { | ||
type = "map" | ||
default = { | ||
us-east-1 = "ami-e4c9db8e" | ||
} | ||
} | ||
|
||
resource "null_resource" "noop" {} |
7 changes: 7 additions & 0 deletions
7
terraform/test-fixtures/plan-module-var-with-default-value/main.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
resource "null_resource" "noop" {} | ||
|
||
module "test" { | ||
source = "./inner" | ||
|
||
im_a_string = "hello" | ||
} |