Skip to content

Commit a21adaa

Browse files
add condition for empty health check fqdns
1 parent 50141fd commit a21adaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

locals.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ locals {
2525
},
2626
{
2727
name = "/${var.namespace}/${var.environment}/alb/${module.alb.alb_name}/health_check_fqdn"
28-
value = join(", ",module.health_check.route_53_fqdn)
28+
value = length(module.health_check.route_53_fqdn) > 0 ? join(", ", module.health_check.route_53_fqdn) : "No health check FQDN"
2929
description = "ALB Health Check FQDN."
3030
type = "String"
3131
},

0 commit comments

Comments
 (0)