这就是我运行 terraform plan 时得到的结果,它曾经在早期版本中工作过,所以基本上 concat 是返回列表而不是字符串。
Errors:
* At column 3, line 1: lookup: argument 2 should be type string, got type list in:
${lookup(var.az, concat("zone", count.index + 1))}
我正在使用 terraform 的编译版本
$ terraform --version
Terraform v0.7.0-dev (854c9bd488dfdb12303ec47e42d6de8fc17e40a5)