github.com/heimweh/terraform@v0.7.4/terraform/test-fixtures/apply-map-var-override/main.tf (about) 1 variable "images" { 2 default = { 3 us-east-1 = "image-1234" 4 us-west-2 = "image-4567" 5 } 6 } 7 8 resource "aws_instance" "foo" { 9 ami = "${lookup(var.images, "us-east-1")}" 10 } 11 12 resource "aws_instance" "bar" { 13 ami = "${lookup(var.images, "us-west-2")}" 14 }