Skip to content

Commit 3dc9d80

Browse files
committed
Fixing outputs
1 parent cfab2eb commit 3dc9d80

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

operations/deployment/terraform/aws/bitovi_main.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -821,9 +821,9 @@ locals {
821821

822822
vm_url_candidates = [
823823
try(try(module.aws_route53[0].vm_url, null),
824-
local.alb_url,
825-
local.elb_url,
826-
local.ec2_endpoint,null)
824+
local.alb_url,
825+
local.elb_url,
826+
local.ec2_endpoint, null)
827827
]
828828
vm_url_first_nonempty = [for url in local.vm_url_candidates : url if url != null && url != ""][0]
829829
}
@@ -883,7 +883,8 @@ output "application_public_dns" {
883883
}
884884

885885
output "vm_url" {
886-
value = local.vm_url_first_nonempty
886+
description = "Will print the best available URL for the VM, ALB, ELB or EC2 instance"
887+
value = try(local.vm_url_first_nonempty, null)
887888
}
888889

889890
# EFS

0 commit comments

Comments
 (0)