github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/apply-vars-env/main.tf (about)

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