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": | ||
Line 8: | Line 8: | ||
│ ../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: If your element is from type <code>[[ | + | * Solution: If your element is 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. |
− | * Example: <code>[[ | + | * Example: <code>[[variable]] "[[vpc_security_group_ids]]" { default = ["sg-9038b461666bf999a"] }</code> |
== Related == | == Related == | ||
* [[Terraform types]]: <code>[[Terraform: list type|list]]</code> | * [[Terraform types]]: <code>[[Terraform: list type|list]]</code> | ||
− | * | + | * [[List of object required]] |
− | |||
== See also == | == See also == | ||
− | |||
− | |||
* {{terraform plan}} | * {{terraform plan}} | ||
+ | * {{Terraform}} | ||
[[Category:Terraform]] | [[Category:Terraform]] |
Advertising: