【发布时间】:2019-01-23 18:04:58
【问题描述】:
使用 terraform 我尝试使用 count.index 将计数包含在我的资源名称中,但无法显示计数。我基本上是想将计数添加到资源名称中,以便可以找到资源,否则资源是未知的。
count = 3
autoscaling_group_name = "${aws_autoscaling_group.exampleautoscaling-("count.index")-example.name}"
错误
resource variables must be three parts: TYPE.NAME.ATTR in:
expected is : exampleautoscaling-1-example.name,exampleautoscaling-2-example.name,exampleautoscaling-3-example.name
【问题讨论】:
标签: terraform