github.com/hugorut/terraform@v1.1.3/src/terraform/testdata/input-variables/main.tf (about) 1 # Required 2 variable "foo" { 3 } 4 5 # Optional 6 variable "bar" { 7 default = "baz" 8 } 9 10 # Mapping 11 variable "map" { 12 default = { 13 foo = "bar" 14 } 15 } 16 17 # Complex Object Types 18 variable "object_map" { 19 type = map(object({ 20 foo = string, 21 bar = any 22 })) 23 } 24 25 variable "object_list" { 26 type = list(object({ 27 foo = string, 28 bar = any 29 })) 30 }