mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-22 02:20:07 -04:00
58 lines
No EOL
738 B
HCL
58 lines
No EOL
738 B
HCL
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
|
|
}
|
|
} |