【发布时间】:2021-10-09 04:08:10
【问题描述】:
是否有一个选项可以为 terraform 中的嵌套变量设置默认值和描述?
例子:
variable "example_page_rule"{
type = list(object({
level = string,
tags = string,
prefix = string
}))
}
这可以实现吗?
variable "example_page_rule"{
type = list(object({
level = string, default = "1", description = "debug level 0-7"
tags = string, default = {}, description = "tags"
prefix = string, default = "abc", description = "some description"
}))
}
【问题讨论】:
标签: amazon-web-services azure google-cloud-platform terraform hcl