-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Chhanging type in google_compute_security_policy does not cause the resource to be recreated #20071
Chhanging type in google_compute_security_policy does not cause the resource to be recreated #20071
Comments
…olicy` Updating the `type` of `google_compute_security_policy` (e.g., from `CLOUD_ARMOR` to `CLOUD_ARMOR_EDGE`) requires the resource to be recreated. Fixes hashicorp/terraform-provider-google#20071
…olicy` Updating the `type` of `google_compute_security_policy` (e.g., from `CLOUD_ARMOR` to `CLOUD_ARMOR_EDGE`) requires the resource to be recreated. Fixes hashicorp/terraform-provider-google#20071
Hi @xremming could you be more specific in what you are looking for with this change and how this change makes an improvement? |
Most google provider resources will have fields such as this marked that changing them will recreate the resource. Since the type cannot be changed after creation, changing it should recreate the resource. It seems that there is a PR to fix this: GoogleCloudPlatform/magic-modules#12233 |
Yes for now we just need to wait for the review and approval, but I'm trying to understand if this is enough or if you are looking for different purposes. |
✅ Yes, that should be enough to handle this case. |
Awesome! thanks for letting us know! Hope you a happy coding! |
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
Terraform Version & Provider Version(s)
Terraform v1.9.7
on darwin_arm64
Affected Resource(s)
google_compute_security_policy
Terraform Configuration
Debug Output
No response
Expected Behavior
Changing the type e.g. from
CLOUD_ARMOR
toCLOUD_ARMOR_EDGE
should recreate the resource.Actual Behavior
Changing the type e.g. from
CLOUD_ARMOR
toCLOUD_ARMOR_EDGE
causes it to update the resource without doing any real changes (plan will show the value to always be different).Steps to reproduce
terraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: