diff --git a/outputs.tf b/outputs.tf index 4fd5c17..093eda6 100644 --- a/outputs.tf +++ b/outputs.tf @@ -14,11 +14,11 @@ output "broker_instances" { } output "nlb_dns_name" { - value = aws_lb.main[0].dns_name + value = try(aws_lb.main[0].dns_name, "") description = "NLB DNS Name." } output "nlb_zone_id" { - value = aws_lb.main[0].zone_id + value = try(aws_lb.main[0].zone_id, "") description = "NLB Zone Id." }