From a3352c74494ed367efe1d1515ff1a91eaeb0c430 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Sat, 20 Apr 2024 14:12:25 +0200 Subject: [PATCH] terraform, aws: add back reference to flatten trick --- terraform/aws/irsa.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/terraform/aws/irsa.tf b/terraform/aws/irsa.tf index 2707acf646..672e2180d4 100644 --- a/terraform/aws/irsa.tf +++ b/terraform/aws/irsa.tf @@ -13,6 +13,7 @@ data "aws_partition" "current" {} locals { + # Nested for loop, thanks to https://www.daveperrett.com/articles/2021/08/19/nested-for-each-with-terraform/ hub_to_role_mapping = flatten([ for hub, hub_value in var.hub_cloud_permissions : [ for ksa_name, cloud_permissions in hub_value : {