31 lines
343 B
Plaintext
31 lines
343 B
Plaintext
|
|
# 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 |