github.com/mehmetalisavas/terraform@v0.7.10/terraform/test-fixtures/apply-map-var-through-module/main.tf (about)

     1  variable "amis_in" {
     2      type = "map"
     3      default = {
     4          "us-west-1" = "ami-123456"
     5          "us-west-2" = "ami-456789"
     6          "eu-west-1" = "ami-789012"
     7          "eu-west-2" = "ami-989484"
     8      }
     9  }
    10  
    11  module "test" {
    12      source = "./amodule"
    13  
    14      amis = "${var.amis_in}"
    15  }
    16  
    17  output "amis_from_module" {
    18      value = "${module.test.amis_out}"
    19  }