Skip to content

Commit 56a62bf

Browse files
committed
chore: update output
1 parent 1e1bbff commit 56a62bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
output "lb_public_dns" {
22
description = "The DNS name of the public load balancer."
3-
value = aws_lb.public[0].dns_name
3+
value = try(aws_lb.public[0].dns_name, "")
44
}
55

66
output "lb_private_dns" {
@@ -9,7 +9,7 @@ output "lb_private_dns" {
99
}
1010

1111
output "vpn_public_dns" {
12-
value = try(aws_route53_record.public[0].name, aws_lb.public[0].dns_name)
12+
value = try(aws_route53_record.public[0].name, aws_lb.public[0].dns_name, [""])
1313
description = "public dns for connect vpn server"
1414
}
1515

0 commit comments

Comments
 (0)