Fixed issue with cross region load balancer IP address assigment (#3593)

This commit is contained in:
apichick
2025-12-13 12:42:53 +01:00
committed by GitHub
parent 5af6a3ee25
commit 77cdcafd3c

View File

@@ -61,7 +61,7 @@ resource "google_compute_global_forwarding_rule" "forwarding_rules" {
project = var.project_id
name = "${var.name}-${each.key}"
description = var.description
ip_address = try(var.addresses[each.value], null)
ip_address = try(var.addresses[each.key], null)
ip_protocol = "TCP"
load_balancing_scheme = "INTERNAL_MANAGED"
network = var.vpc_config.network