github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/not-internal/configs/testdata/warning-files/object-optional-attrs-experiment.tf (about) 1 terraform { 2 experiments = [ 3 module_variable_optional_attrs, # WARNING: Experimental feature "module_variable_optional_attrs" is active 4 ] 5 } 6 7 variable "a" { 8 type = object({ 9 foo = optional(string) 10 }) 11 } 12 13 variable "b" { 14 type = list( 15 object({ 16 foo = optional(string) 17 }) 18 ) 19 } 20 21 variable "c" { 22 type = set( 23 object({ 24 foo = optional(string) 25 }) 26 ) 27 } 28 29 variable "d" { 30 type = map( 31 object({ 32 foo = optional(string) 33 }) 34 ) 35 }