From 095196370bf64e9ff937165ef563ce9868edf9f1 Mon Sep 17 00:00:00 2001 From: Dmitry Kireev Date: Tue, 22 Feb 2022 19:23:21 +0000 Subject: [PATCH] Ensure we don't access empty efs mount via splat expression --- outputs.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/outputs.tf b/outputs.tf index db6c14d..c29fb43 100644 --- a/outputs.tf +++ b/outputs.tf @@ -23,7 +23,7 @@ output "alb_arn" { } output "efs" { - value = module.efs.mount_target_dns_names[*] + value = var.efs_enabled ? module.efs.mount_target_dns_names[*] : "" } output "eips" {