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 : {