小编Isa*_*acD的帖子

地形变量中的地图内的地图

有谁知道是否有可能用代码片段来表示我是否可以在 terraform 变量的地图变量中创建地图变量?

variable "var" {
  type = map
  default = {
    firstchoice = {
      firstAChoice ="foo"
      firstBChoice = "bar"
    }
    secondchoice = {
      secondAChoice = "foobar"
      secondBChoice = "barfoo"
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

如果有人对这是否可行或任何详细说明的文档有任何见解,那就太好了。

variables terraform terraform-provider-aws

8
推荐指数
2
解决办法
1万
查看次数