# Load Balancing Module Outputs
output "alb_id" {
description = "ID of the ALB"
value = aws_lb.main.id
}
output "alb_arn" {
description = "ARN of the ALB"
value = aws_lb.main.arn
}
output "alb_dns_name" {
description = "DNS name of the ALB"
value = aws_lb.main.dns_name
}
output "alb_zone_id" {
description = "Zone ID of the ALB"
value = aws_lb.main.zone_id
}
output "target_group_arn" {
description = "ARN of the target group"
value = aws_lb_target_group.main.arn
}
output "target_group_name" {
description = "Name of the target group"
value = aws_lb_target_group.main.name
}
output "http_listener_arn" {
description = "ARN of the HTTP listener"
value = aws_lb_listener.http.arn
}
output "https_listener_arn" {
description = "ARN of the HTTPS listener"
value = length(aws_lb_listener.https) > 0 ? aws_lb_listener.https[0].arn : null
}