Closed bahag-klickst closed 2 months ago
Okay, just found out, that I missed to check setting balancing_mode to "UTILIZATION". Using "UTILIZATION" works and setup of ILB with CR based backend is possible.
However, not sure if this is the right setting.
I reviewed the latest Magic Modules resource "google_cloud_run_service" in the regional neg and see not all required fields are supported and/or tested.
The cloud_run_service.traffic property is not supported in the terraform.yaml. Also, the full configuration expressed here is not represented or tested in its entirety. Once the missing fields and handwritten tests are added, the support for serverless neg should done.
Any updates on this issue?
Also would love to see this feature implemented
Any updates on this issue? @bahag-klickst you have found the correct workaround. Default Terraform value is different than deafult GCP value, setting it explicitly solves the problem.
Changing the default value is a breaking change, so it will need to wait for the next.
@melinath Could you mark this bug as breaking change, please? Could you also close 17257 as duplicate?
@hao-nan-li could you look into making the changes requested in https://github.com/hashicorp/terraform-provider-google/issues/12299#issuecomment-2132987091 if appropriate?
@melinath @hao-nan-li I am planning to preapre a PR which clears the deafult values next week. Making 17257 duplicate could help, but we can just mark both as resolved after the PR.
Thanks @pawelJas, just marked duplicate on #17257
The default value for balancing_mode in google_compute_region_backend_service
has been changed to UTILIZATION
(default GCP value) in version 6.0.0. That should resolve the serverless NEG support.
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Description
We are using the public preview feature of Internal Load Balancer supporting Cloud Run backends (https://cloud.google.com/load-balancing/docs/l7-internal/setting-up-l7-internal-serverless) and created a bash script for invoking the gcloud commands. We now wanted to build the setup via terraform, but unfortunately it fails due to google_compute_region_backend_service not supporting serverless negs. We are receiving the following error:
New or Affected Resource(s)
google_compute_region_backend_service
Potential Terraform Configuration
References
In the docs it states, that when using the gcloud commands, one should use the following commands to setup the backend service and attach the neg:
So I guess backend block has to be expanded to support neg.
b/314616920