【发布时间】:2023-03-15 04:29:01
【问题描述】:
我想创建一个这样的地图:
variable "test" {
type = map(any)
default = {
param1 = "sdfsdf",
param2 = "sdfsfd",
param3 = {
mylist = [
"aaaaa",
"bbbbb",
"ccccc"
]
}
我收到此错误:
This default value is not compatible with the variable's type constraint: all
map elements must have the same type.
这是否意味着我已经定义了正确的 var 或 Terraform 只是不允许这样做?
【问题讨论】:
标签: terraform