Merge pull request #458 from GoogleCloudPlatform/457-glb-fix-default-svc

[#457] Fix url map default service selection
This commit is contained in:
Julio Castillo
2022-01-25 12:17:19 +01:00
committed by GitHub

View File

@@ -34,8 +34,8 @@ locals {
&& try(var.url_map_config.default_route_action.weighted_backend_services, null) == null
&& try(var.url_map_config.default_url_redirect, null) == null
? try(
google_compute_backend_bucket.bucket.0.id,
google_compute_backend_service.group.0.id,
google_compute_backend_bucket.bucket[keys(google_compute_backend_bucket.bucket)[0]].id,
google_compute_backend_service.group[keys(google_compute_backend_service.group)[0]].id,
null
)
: null