github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/configs/testdata/valid-files/variables.tf (about)

     1  
     2  variable "foo" {
     3  }
     4  
     5  variable "bar" {
     6    default = "hello"
     7  }
     8  
     9  variable "baz" {
    10    type = list
    11  }
    12  
    13  variable "bar-baz" {
    14    default = []
    15    type    = list(string)
    16  }
    17  
    18  variable "cheeze_pizza" {
    19    description = "Nothing special"
    20  }
    21  
    22  variable "π" {
    23    default = 3.14159265359
    24  }
    25  
    26  variable "sensitive_value" {
    27    default = {
    28      "a" = 1,
    29      "b" = 2
    30    }
    31    sensitive = true
    32  }
    33  
    34  variable "nullable" {
    35    type = string
    36    nullable = true
    37    default = "ok"
    38  }
    39  
    40  variable "nullable_default_null" {
    41    type = map(string)
    42    nullable = true
    43    default = null
    44  }