From 54c7d8a5c6046e63820b13f576d142fe24fcdbe6 Mon Sep 17 00:00:00 2001 From: Ludovico Magnocavallo Date: Sat, 12 Feb 2022 15:41:13 +0100 Subject: [PATCH] fix perimeter definition in locals --- fast/stages/02-security/vpc-sc.tf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fast/stages/02-security/vpc-sc.tf b/fast/stages/02-security/vpc-sc.tf index 49611e0fc..e9887d205 100644 --- a/fast/stages/02-security/vpc-sc.tf +++ b/fast/stages/02-security/vpc-sc.tf @@ -116,8 +116,11 @@ locals { for k in local._perimeter_names : k => [] } : { - for k, v in local._perimeter_names : - k => v == null ? [] : v + for k in local._perimeter_names : k => ( + var.vpc_sc_perimeter_projects[k] == null + ? [] + : var.vpc_sc_perimeter_projects[k] + ) } ) # get the list of restricted services from the yaml file