Files
opentf/internal/tofu/testdata/input-variables/main.tf
2023-09-20 15:16:53 +03:00

31 lines
342 B
HCL

# Required
variable "foo" {
}
# Optional
variable "bar" {
default = "baz"
}
# Mapping
variable "map" {
default = {
foo = "bar"
}
}
# Complex Object Types
variable "object_map" {
type = map(object({
foo = string,
bar = any
}))
}
variable "object_list" {
type = list(object({
foo = string,
bar = any
}))
}