mirror of https://github.com/hashicorp/terraform
tests to cover the HCL-level issue fixed in https://github.com/hashicorp/hcl/pull/65pull/4053/head
parent
bd23ab35bf
commit
0e277a6714
@ -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")}"
|
||||
}
|
||||
Loading…
Reference in new issue