-
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
Can't add ssl policy to existing google_compute_region_target_https_proxy #16963
Can't add ssl policy to existing google_compute_region_target_https_proxy #16963
Comments
Perhaps not a bug, but maybe a combo of properly using a random id added to the name of the proxy resource and use of |
Thanks @edwardmedia - yes the only change introduced in this case was adding the ssl policy. Looking back at the run output, it does also seem to want to change the ssl certificate reference as well from what looks like self link to id type of format:
This run also was using the 5.3.0 version of the google provider at the time vs 5.11.0. |
I see where the problem is |
@edwardmedia it looks like the region https_proxy resource does not have a method to update the ssl policy where the global/non-regional https_proxy does? Hence our run wants to recreate our proxy (which it can't - in use) vs update in place. terraform-provider-google/google/services/compute/resource_compute_target_https_proxy.go Line 573 in b8818a7
https://github.com/hashicorp/terraform-provider-google/blob/main/google/services/compute/resource_compute_region_target_https_proxy.go |
setting ssl_policy ForceNew() seems wrong as |
As a workaround I am adding a 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.Terraform Version
Affected Resource(s)
google_compute_region_target_https_proxy
Terraform Configuration Files
Expected Behavior
Terraform creates the new ssl policy object.
Terraform creates a new target_https_proxy with the ssl policy attached, then deletes the previous/old/deposed resource.
Actual Behavior
Steps to Reproduce
terraform apply
b/319998354
The text was updated successfully, but these errors were encountered: