Skip to content

Commit

Permalink
Merge pull request #14 from oozou/feat/add-output
Browse files Browse the repository at this point in the history
update loadbalancer output
  • Loading branch information
thamkrabok authored Mar 5, 2024
2 parents be47cf6 + beba7f7 commit e3b632b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ output "security_group_arn" {

output "aws_lb_public_arn" {
description = "ARN of the application loadbalancer"
value = aws_lb.public[0].arn
value = aws_lb.public.arn
}

output "aws_lb_private_arn" {
description = "ARN of the application loadbalancer"
value = aws_lb.private[0].arn
value = try(aws_lb.private[0].arn, "")
}

output "aws_lb_public_zone_id" {
Expand All @@ -55,5 +55,5 @@ output "aws_lb_public_zone_id" {

output "aws_lb_private_zone_id" {
description = "zone id of the application loadbalancer"
value = aws_lb.private.zone_id
value = try(aws_lb.private[0].zone_id, "")
}

0 comments on commit e3b632b

Please sign in to comment.