terraform-provider-google
terraform-provider-google copied to clipboard
request_coalescing missing from google_compute_backend_service cdn config
Community Note
- 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 the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.
Description
Backend bucket config has the field: https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_backend_bucket#request_coalescing
but backend service does not have it: https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_backend_service
However, it is supported by gcloud: https://cloud.google.com/cdn/docs/caching#request-coalescing
This is important to mitigate unnecessary load spikes for expensive resources.
New or Affected Resource(s)
- google_compute_backend_service
Potential Terraform Configuration
# Propose what you think the configuration to take advantage of this feature should look like.
# We may not use it verbatim, but it's helpful in understanding your intent.
resource "google_compute_backend_service" "default_backend_service" {
...
cdn_policy {
cache_mode = "CACHE_ALL_STATIC"
request_coalescing = true
}
...
}
References
- #0000