Skip to content

Commit 844e2a8

Browse files
authored
fix: Return the external ALB IP correctly (#3)
2 parents a1a5da6 + be82c91 commit 844e2a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/load_balancer/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ output "target_group_arn" {
33
}
44

55
output "load_balancer_ips" {
6-
value = "{${join(",", [for eni in data.aws_network_interface.lb_app : format("%s", eni.association[0].public_ip)])}}"
6+
value = jsonencode([for eni in data.aws_network_interface.lb_app : format("%s", eni.association[0].public_ip)])
77
# value = [for eni in data.aws_network_interface.lb_app : format("\"%s\"", eni.association[0].public_ip)]
88
}
99

0 commit comments

Comments
 (0)