You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/internal/command/testdata/test/complex_condition/main.tf

58 lines
738 B

resource "test_resource" "foo" {
value = "bar"
}
output "foo" {
value = {
bar = "notbaz"
qux = "quux"
matches = "matches"
xuq = "xuq"
}
}
variable "sample" {
type = list(object({
bar = tuple([number])
qux = string
}))
default = [ {
bar = [1]
qux = "quux"
},
{
bar = [2]
qux = "quux"
}]
}
variable "sample_sensitive" {
sensitive = true
type = list(object({
bar = tuple([number])
qux = string
}))
default = [ {
bar = [1]
qux = "quux"
},
{
bar = [2]
qux = "quux_sensitive"
}]
}
output "complex" {
value = {
root = var.sample
}
}
output "complex_sensitive" {
sensitive = true
value = {
root = var.sample_sensitive
}
}