github.com/LorbusChris/terraform@v0.11.12-beta1/terraform/test-fixtures/apply-vars-env/main.tf (about)

     1  variable "ami" {
     2    default = "foo"
     3    type    = "string"
     4  }
     5  
     6  variable "list" {
     7    default = []
     8    type    = "list"
     9  }
    10  
    11  variable "map" {
    12    default = {}
    13    type = "map"
    14  }
    15  
    16  resource "aws_instance" "bar" {
    17    foo = "${var.ami}"
    18    bar = "${join(",", var.list)}"
    19    baz = "${join(",", keys(var.map))}"
    20  }