You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
If an issue is assigned to a user, that user is claiming responsibility for the issue.
Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.
Terraform Version & Provider Version(s)
Terraform v1.9.8
on x86_64
provider registry.terraform.io/hashicorp/google v6.9.0 vs v6.11.0
provider registry.terraform.io/hashicorp/google-beta v6.9.0 to v6.11.0
Our pipeline performs a Terraform Refresh before running a Terraform Plan to reconcile any changes to the environment. The affected Hierarchal Firewall Policy (HFP) Rules should persist in state (as they still exist) and Terraform should not attempt to rewrite them.
Actual Behavior
The Terraform Refresh does not recognize v6.9.0 HFP statefile records when running v6.11.0 or later of the Google provider. This removes those resources from the statefile and attempts to recreate them during the plan stage of our pipelines even though they still exist.
Steps to reproduce
terraform plan/apply - Create google_firewall_policy_rule using Google provider v6.9.0.
terraform refresh - using Google provider v6.11.0
terraform plan - using Google provider v6.11.0
Important Factoids
No response
References
Possibly related to #20160 as that was the only related changelog entry to this observed behavior
The text was updated successfully, but these errors were encountered:
Community Note
Terraform Version & Provider Version(s)
Terraform v1.9.8
on x86_64
Affected Resource(s)
google_compute_firewall_policy_rule
Terraform Configuration
Debug Output
<script src="https://gist.github.com/jornjohnson/81107a0c80b953ba78cfd23615f8576e.js"></script>
Expected Behavior
Our pipeline performs a Terraform Refresh before running a Terraform Plan to reconcile any changes to the environment. The affected Hierarchal Firewall Policy (HFP) Rules should persist in state (as they still exist) and Terraform should not attempt to rewrite them.
Actual Behavior
The Terraform Refresh does not recognize v6.9.0 HFP statefile records when running v6.11.0 or later of the Google provider. This removes those resources from the statefile and attempts to recreate them during the plan stage of our pipelines even though they still exist.
Steps to reproduce
terraform plan/apply
- Creategoogle_firewall_policy_rule
using Google provider v6.9.0.terraform refresh
- using Google provider v6.11.0terraform plan
- using Google provider v6.11.0Important Factoids
No response
References
Possibly related to #20160 as that was the only related changelog entry to this observed behavior
The text was updated successfully, but these errors were encountered: