mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-14 19:00:37 -05:00
* vendor: upgrade go-cty dependency to 1.4.1 This upgrade fixes a panic with inconsistent object element types.
31 lines
342 B
HCL
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
|
|
}))
|
|
}
|