![](/img/trans.png)
[英]terraform giving error: unsupported argument in module when running terraform plan?
[英]Terraform Error: Extraneous label for module when running terraform init
运行 terraform init 时出现此错误:
Error: Extraneous label for module
on rds.tf line 22, in module "rds" "app":
22: module "rds" "app" {
Only 1 labels (name) are expected for module blocks.
我有两个模块创建了“rds”和“app”,我在创建数据库实例时都引用了它们:
# PostgreSQL RDS App Instance
module "rds" "app" {
我该如何修复这个错误?
如果使用 TF 0.13,另一种选择是使用计数设置为 2 的单个模块,然后使用 count.index 从预定义的列表 [] 变量中获取该迭代的特定名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.