小编Abu*_*lal的帖子

带有嵌套地图的 terraform 嵌套动态块

我正在尝试使 tf 0.12.x 新动态功能与嵌套地图一起使用,配置如下。

正如您在下面看到的(为此进行了简化),我正在定义所有变量并添加包含地图的变量 required_resource_access。

我希望使用新的动态功能在嵌套的动态块中创建读取此地图。



variable prefix {
 description = "Prefix to applied to all top level resources"
 default = "abx"
}

variable suffix {
  description = "Suffix to applied to all valid top level resources, usually this is 2 letter region code such as we (westeurope), ne (northeurope)."
  default = "we"
}

variable env {
  description = "3 letter environment code appied to all top level resources"
  default = "dev"
}

variable location {
  description = "Where …
Run Code Online (Sandbox Code Playgroud)

dictionary dynamic terraform

6
推荐指数
1
解决办法
4732
查看次数

标签 统计

dictionary ×1

dynamic ×1

terraform ×1