Editing Terraform error: List of string required
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | │ | + | │ Error: Invalid value for module argument |
│ | │ | ||
│ on main.tf line 8, in module "yourModuleName": | │ on main.tf line 8, in module "yourModuleName": | ||
− | │ 8: [[subnet_ids]] = | + | │ 8: [[subnet_ids]] = var.subnet_id |
│ | │ | ||
│ The given value is not suitable for child module [[variable]] "subnet_ids" defined at | │ The given value is not suitable for child module [[variable]] "subnet_ids" defined at | ||
│ ../path/to/your/terraformodule.tf :79,1-22: [[list of string required]]. | │ ../path/to/your/terraformodule.tf :79,1-22: [[list of string required]]. | ||
− | * Solution: | + | * Solution: if your element if from type <code>[[list]]</code> make user provide values using proper format: <code>[value1, value2]</code> or <code>[value1]</code> if your list of strings only have one value. |
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
− | * {{Terraform | + | * {{Terraform}} |
− | |||
− | |||
[[Category:Terraform]] | [[Category:Terraform]] |
Advertising: