-
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 #4053 from hashicorp/phinze/map-key-test-coverage
core: test coverage around map key regression
- Loading branch information
Showing
3 changed files
with
67 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
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,14 @@ | ||
variable "images" { | ||
default = { | ||
us-east-1 = "image-1234" | ||
us-west-2 = "image-4567" | ||
} | ||
} | ||
|
||
resource "aws_instance" "foo" { | ||
ami = "${lookup(var.images, "us-east-1")}" | ||
} | ||
|
||
resource "aws_instance" "bar" { | ||
ami = "${lookup(var.images, "us-west-2")}" | ||
} |