-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
terraform v0.12.12: When using "for_each", the key can be a string #133
Comments
Is there any way to workaround this? |
@sprnza i believe i simply went back to using count = , instead of for_each :( |
someone please fix this issue... |
It looks like #132 is a partial fix. I don't have time to fix this myself, but I'd be happy to review and merge a proper fix. It would helpful if one of you could provide a (redacted) statefile exhibiting the broken behavior. |
ERROR:
EXAMPLE TFSTATE FILE:
|
What about Terraform 0.13? I just upgraded (never tester terraform-inventory in 0.12). This is my Terraform version: $ terraform version
Terraform v0.13.0
+ provider registry.terraform.io/digitalocean/digitalocean v1.22.1 And this is the error: Error reading Terraform state: 0.12 format error: json: cannot unmarshal string into Go struct field resourceStateTerraform0dot12.index of type int; pre-0.12 format error: <nil> (nil error means no content/modules found in the respective format) |
This results in this error:
Error reading tfstate file: 0.12 format error: json: cannot unmarshal string into Go struct field resourceStateTerraform0dot12.index of type int; pre-0.12 format error: <nil> (nil error means no content/modules found in the respective format)
example:
The above causes "index" to be a string
The text was updated successfully, but these errors were encountered: