Closed schollii closed 2 years ago
Is it possible/safe to downgrade? I just blundered into this while trying to upgrade a different plugin.
I don't recall a problem downgrading. Pin the version, init, apply (check the plan before yes)
I think the only way to fix this is to destroy and recreate the resource. Basically, terraform fails to correctly compute the required steps to perform the operation.
I have encountered this with other modules when we do big changes.
I'm not sure what has changed recently to cause this. We'll review any PRs though to fix it =)
I just had this problem and I fixed it bu running :
terraform state rm module.terraform_state_backend.module.s3_bucket_label.data.null_data_source.tags_as_list_of_maps
terraform state rm module.terraform_state_backend.module.base_label.data.null_data_source.tags_as_list_of_maps
terraform state rm module.terraform_state_backend.module.dynamodb_table_label.data.null_data_source.tags_as_list_of_maps
I just had this problem and I fixed it bu running :
terraform state rm module.terraform_state_backend.module.s3_bucket_label.data.null_data_source.tags_as_list_of_maps terraform state rm module.terraform_state_backend.module.base_label.data.null_data_source.tags_as_list_of_maps terraform state rm module.terraform_state_backend.module.dynamodb_table_label.data.null_data_source.tags_as_list_of_maps
This worked for me. Thanks.
Ok I will close this since a workaround has been found.
Found a bug? Maybe our Slack Community can help.
Describe the Bug
When upgrading the backend plugin from 0.16 to 0.17, you get a bunch of errors that look like this:
Terraform version:
I checked https://github.com/hashicorp/terraform/issues/21416 but it is not obvious how to fix, I think the fix has to be in your module (not in backend.tf).
Expected Behavior
The
terraform apply
after upgrading backend module to 0.17 should have worked.Steps to Reproduce
In empty folder, create
backend.tf
:Then
Everything works.
Now edit the
backend.tf
file to point to 0.17 of terraform-aws-tfstate-backend module, then repeat:This time the apply causes a dozen identical errors (but about different elements). The error is shown in the Description above.