-
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
Cross-regional Internal HTTPS Load Balancer Certificate Manager Compatibility doesn't work with proxy resource #15805
Cross-regional Internal HTTPS Load Balancer Certificate Manager Compatibility doesn't work with proxy resource #15805
Comments
@dgulli you receive the error code 400 from the api,
|
A colleague of mine and I were running into the same issue and I wanted to create an issue for it so it's great someone already took the effort to do it. The reason it's getting rejected is because we force the resource url from a certificatemanager certificate to an sslCertificate. When you create the
This implies that the sslCertificate has a resource on the path Also i'd like to emphasize that it does work through gcloud, it doesn't get rejected with the command above. When you create the resource in terraform like this:
It will reject it with the response below, which is odd because the reference should be to
I believe that this is because of the current implementation of the We force it to a I'd like to pick this issue up as soon as possible as it's quite blocking for a customer of ours. |
sure @edwardmedia - here it is https://gist.github.com/dgulli/183a0ab45690b07d14180fbce4ee1e40 |
Thanks for the extensive deep-dive you've did @DanielRieske. This indeed seems to be the problem. |
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
Terraform v1.5.7
Affected Resource(s)
google_compute_target_https_proxy
Terraform Configuration Files
Debug Output
https://gist.github.com/dgulli/6838e4903ac764e7f7ff03d0d2fd736b
Expected Behavior
As per the documentation, cross-regional internal https load balancers allow for the use of certificate manager hosted google or self-managed certificates. Using the gcloud or UI produces the correct result and allows the target https proxy to utilise a certificate hosted in certificate manager.
Actual Behavior
Using the terraform resource google_compute_target_https_proxy, and setting ssl_certificates to the url of the certificate produces the error:
Error: Error creating TargetHttpsProxy: googleapi: Error 400: Invalid value for field 'resource.sslCertificates[0]': 'projects/dg******t/global/sslCertificates/l****t'. Compute SSL certificates are not supported with global INTERNAL_MANAGED load balancer., invalid │
(full path redacted with *)
However, the resource documentation states that this should be possible:
A list of SslCertificate resource URLs or Certificate Manager certificate URLs that are used to authenticate connections between users and the load balancer. At least one resource must be specified.
Steps to Reproduce
terraform apply
Important Factoids
gcloud compute target-https-proxies create gil7-https-proxy \ --url-map=gil7-map \ --certificate-manager-certificates=gilb-certificate
works as intended, and using a terraform import on the resource after creation via gcloud allows the rest to continue building. the resource literally wont just accept a certificate manager url despite the doco saying it can.References
--->
The text was updated successfully, but these errors were encountered: