43 lines
509 B
Plaintext
43 lines
509 B
Plaintext
|
|
# Required
|
|||
|
|
variable "foo" {
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
# Optional
|
|||
|
|
variable "bar" {
|
|||
|
|
default = "baz"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
# Mapping
|
|||
|
|
variable "# Mapping
|
|||
|
|
variable "map" {
|
|||
|
|
default = {
|
|||
|
|
foo = "bar"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
# Complex Object Types
|
|||
|
|
variab<EFBFBD><EFBFBD><EFBFBD>ݐ<EFBFBD><EFBFBD><EFBFBD>ct_map" {
|
|||
|
|
type = map(object({
|
|||
|
|
foo = string,
|
|||
|
|
bar = any
|
|||
|
|
map" {
|
|||
|
|
default = {
|
|||
|
|
foo = "bar"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
# Complex Object Types
|
|||
|
|
variab<EFBFBD><EFBFBD><EFBFBD>ݐ<EFBFBD><EFBFBD><EFBFBD>ct_map" {
|
|||
|
|
type = map(object({
|
|||
|
|
foo = string,
|
|||
|
|
bar = any
|
|||
|
|
}))
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
variable "object_list" {
|
|||
|
|
type = list(object({
|
|||
|
|
foo |