Skip to content

Commit

Permalink
Fix elb output error (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifelofranco committed Jun 1, 2023
1 parent 85be96e commit 0a167a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ output "bastion_auto_scaling_group_name" {

output "bastion_elb_id" {
description = "The ID of the ELB for bastion hosts"
value = var.create_elb ? aws_lb.bastion_lb[0].id : null
value = var.create_elb ? try(aws_lb.bastion_lb[0].id, null) : null
}

output "bastion_host_security_group" {
Expand Down Expand Up @@ -35,12 +35,12 @@ output "bucket_name" {

output "elb_arn" {
description = "The ARN of the ELB for bastion hosts"
value = var.create_elb ? aws_lb.bastion_lb[0].arn : null
value = var.create_elb ? try(aws_lb.bastion_lb[0].arn, null) : null
}

output "elb_ip" {
description = "The DNS name of the ELB for bastion hosts"
value = var.create_elb ? aws_lb.bastion_lb[0].dns_name : null
value = var.create_elb ? try(aws_lb.bastion_lb[0].dns_name, null) : null
}

output "private_instances_security_group" {
Expand All @@ -50,5 +50,5 @@ output "private_instances_security_group" {

output "target_group_arn" {
description = "The ARN of the target group for the ELB"
value = var.create_elb ? aws_lb_target_group.bastion_lb_target_group[0].arn : null
value = var.create_elb ? try(aws_lb_target_group.bastion_lb_target_group[0].arn, null) : null
}

0 comments on commit 0a167a2

Please sign in to comment.