github.com/swisspost/terratest@v0.0.0-20230214120104-7ec6de2e1ae0/test/fixtures/terraform-null/main.tf (about)

     1  variable "foo" {
     2    type = object({
     3      nullable_string    = string
     4      nonnullable_string = string
     5    })
     6  }
     7  
     8  output "foo" {
     9    value = var.foo
    10  }
    11  
    12  output "bar" {
    13    value = var.foo.nullable_string == null ? "I AM NULL" : null
    14  }