![](/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.