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.
Error: Error updating RegionBackendService "projects/myproject/regions/europe-west1/backendServices/test": googleapi: Error 400: Invalid value for field 'resource.enableCDN': 'true'. Enable CDN is not allowed for regional EXTERNAL_MANAGED backend service with HTTP(S) protocol., invalid
Expected Behavior
The arguments enable_cdn and cdn_policy should not be present on google_compute_region_backend_service, as the Regional External Application Load Balancer does not support Cloud CDN.
Cloud CDN is supported with the global external Application Load Balancer and the classic Application Load Balancer.
Actual Behavior
The GCP API returns an error 400:
Error: Error updating RegionBackendService "projects/myproject/regions/europe-west1/backendServices/test": googleapi: Error 400: Invalid value for field 'resource.enableCDN': 'true'. Enable CDN is not allowed for regional EXTERNAL_MANAGED backend service with HTTP(S) protocol., invalid
Community Note
Terraform Version & Provider Version(s)
Terraform v1.9.8
on darwin_arm64
Affected Resource(s)
google_compute_region_backend_service
Terraform Configuration
Debug Output
Error: Error updating RegionBackendService "projects/myproject/regions/europe-west1/backendServices/test": googleapi: Error 400: Invalid value for field 'resource.enableCDN': 'true'. Enable CDN is not allowed for regional EXTERNAL_MANAGED backend service with HTTP(S) protocol., invalid
Expected Behavior
The arguments
enable_cdn
andcdn_policy
should not be present ongoogle_compute_region_backend_service
, as the Regional External Application Load Balancer does not support Cloud CDN.Quote from the documentation:
Actual Behavior
The GCP API returns an error 400:
Steps to reproduce
terraform apply
Important Factoids
No response
References
https://cloud.google.com/load-balancing/docs/load-balancing-overview
https://cloud.google.com/compute/docs/reference/rest/v1/regionBackendServices: The API documentation for the
regionBackendService
lists the parameterenableCDN
, but also says:The text was updated successfully, but these errors were encountered: