loadbalancer address outputs for other GCP + AWS

This commit is contained in:
miampf 2025-02-18 12:54:02 +01:00
parent 6298de992e
commit d0b3bdb81c
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C
2 changed files with 10 additions and 0 deletions

View File

@ -45,3 +45,8 @@ output "ip_cidr_node" {
value = local.cidr_vpc_subnet_nodes
description = "CIDR block of the node network."
}
output "loadbalancer_address" {
value = aws_lb.front_end.dns_name
description = "Public loadbalancer address."
}

View File

@ -56,3 +56,8 @@ output "ip_cidr_pod" {
value = local.cidr_vpc_subnet_pods
description = "CIDR block of the pod network."
}
output "loadbalancer_address" {
value = var.internal_load_balancer ? google_compute_address.loadbalancer_ip_internal[0].address : google_compute_global_address.loadbalancer_ip[0].address
description = "Public loadbalancer address."
}