mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-03 22:10:40 -05:00
26 lines
359 B
HCL
26 lines
359 B
HCL
|
|
variable "input" {
|
|
|
|
type = object({
|
|
required = string
|
|
optional = optional(string)
|
|
default = optional(string, "default")
|
|
})
|
|
|
|
default = {
|
|
required = "required"
|
|
}
|
|
|
|
}
|
|
|
|
resource "test_resource" "resource" {
|
|
value = var.input.default
|
|
}
|
|
|
|
output "computed" {
|
|
value = test_resource.resource.value
|
|
}
|
|
|
|
output "input" {
|
|
value = var.input
|
|
}
|