-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Error: Provider produced inconsistent final plan - "registry.terraform.io/hashicorp/google" produced an invalid new value for .terraform_labels: new element "date_modified" has appeared. #16217
Error: Provider produced inconsistent final plan - "registry.terraform.io/hashicorp/google" produced an invalid new value for .terraform_labels: new element "date_modified" has appeared. #16217
Comments
We will need to look at upgrading from 1.0 to 1.5.7 or the new 1.6.0 https://releases.hashicorp.com/terraform/1.6.0/ as a first step in the https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding codebase |
Setting a provider as per below suppressed the error, as its a change done at version >=5.0.0,
required_providers { |
Is there a timeline when this will be fixed? |
Found a similar issue Can you try Re-apply the terraform to see if the second |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Issue:
Terraform fails to apply the plan, due to invalid new value for .terraform_labels: new element "date_modified" has appeared. While updating the resource GCP project.
Terraform Version
Terraform v1.0.10
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/danishkamili/3378fc6e5001da2a3c1653208295d585
Panic Output
Error: Provider produced inconsistent final plan
│
│ When expanding the plan for module.landing_zone_bootstrap.module.project.google_project.project to include new values learned so far during apply, provider
│ "registry.terraform.io/hashicorp/google" produced an invalid new value for .terraform_labels: new element "date_modified" has appeared.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: Provider produced inconsistent final plan
│
│ When expanding the plan for module.landing_zone_bootstrap.module.project.google_project.project to include new values learned so far during apply, provider
│ "registry.terraform.io/hashicorp/google" produced an invalid new value for .effective_labels: new element "date_modified" has appeared.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
Expected Behavior
Apply should be successful without adding additional labels
Actual Behavior
Terraform apply failed while trying to add a new label : date modified to the resource
Steps to Reproduce
terraform apply
References
#12043
#10131
b/304967677
The text was updated successfully, but these errors were encountered: