Address outstanding load balancer FRs (#2879)

* fix #2877

* fix #2866

* fixes #2865

* fixes #2865

* moved block

* fix standalone test

* blueprints
This commit is contained in:
Ludovico Magnocavallo
2025-02-11 18:09:02 +01:00
committed by GitHub
parent c4758af0d7
commit 7f2ff08997
32 changed files with 200 additions and 145 deletions

View File

@@ -71,7 +71,11 @@ module "glb" {
count = local.gclb_create ? 1 : 0
project_id = module.project.project_id
name = "glb"
address = google_compute_global_address.default[0].address
forwarding_rules_config = {
"" = {
address = google_compute_global_address.default[0].address
}
}
backend_service_configs = {
default = {
backends = [

View File

@@ -18,7 +18,7 @@
# SSL certificate but it is not exported as output
output "custom_domain" {
description = "Custom domain for the Load Balancer."
value = local.gclb_create ? var.custom_domain : "none"
value = try(var.custom_domain, null)
}
output "default_URL" {
@@ -28,5 +28,5 @@ output "default_URL" {
output "load_balancer_ip" {
description = "LB IP that forwards to Cloud Run service."
value = local.gclb_create ? module.glb[0].address : "none"
value = try(module.glb[0].address, null)
}