Skip to content

Commit

Permalink
terraform, aws: add back reference to flatten trick
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Apr 22, 2024
1 parent 5e6f22a commit a3352c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions terraform/aws/irsa.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 : {
Expand Down

0 comments on commit a3352c7

Please sign in to comment.