Terraform计划在升级到0.11.0版本后失败

Terraform计划在升级到0.11.0版本后失败,terraform,Terraform,我无法理解如何在这里前进。 我试着做了地形状态列表,地形状态拉。在我看来一切都很好,但当我实施地形规划时,它就崩溃了 > terraform plan Refreshing Terraform state in-memory prior to plan... The refreshed state will be used to calculate this plan, but will not be persisted to local or remote state storage.

我无法理解如何在这里前进。 我试着做了地形状态列表,地形状态拉。在我看来一切都很好,但当我实施地形规划时,它就崩溃了

> terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

aws_elasticache_subnet_group.default: Refreshing state... (ID: subnet-group-engineering-st-api-production)
aws_security_group.redis: Refreshing state... (ID: sg-3cc2dd4d)
aws_security_group.redis: Refreshing state... (ID: sg-70d13102)
aws_elasticache_subnet_group.default: Refreshing state... (ID: subnet-group-engineering-st-api-20171007-production)
aws_security_group_rule.access_in_api_cache_20171007: Refreshing state... (ID: sgrule-2218275132)
aws_security_group_rule.access_out_api_cache_20171007: Refreshing state... (ID: sgrule-2359785285)
aws_elasticache_cluster.redis: Refreshing state... (ID: st-api-2017-10-07)
aws_elasticache_cluster.redis: Refreshing state... (ID: st-api-2017-08-17)
aws_security_group_rule.access_in: Refreshing state... (ID: sgrule-3430292237)
aws_security_group_rule.access_out: Refreshing state... (ID: sgrule-1891306978)

Error: Error refreshing state: 1 error(s) occurred:

* module.api_cache_20171007.output.endpoint: At column 3, line 1: join: argument 1 should be type list, got type string in:

${join(":", aws_elasticache_cluster.redis.cache_nodes.0.address, aws_elasticache_cluster.redis.cache_nodes.0.port)}

如果我理解正确,您正在为要加入的内容传递两个单独的参数,而需要传递一个列表:

尝试:

此处的文档:

如果我理解正确,您正在为要加入的内容传递两个单独的参数,而需要传递一个列表:

尝试:

此处的文档:

是的,这是我使用的模块中的错误。谢谢各位,修正了。是的,这是我使用的模块中的错误。谢谢你们,修好了。
${join(":", [aws_elasticache_cluster.redis.cache_nodes.0.address, aws_elasticache_cluster.redis.cache_nodes.0.port])}