Skip to content

Commit

Permalink
fix: make for_each index unique
Browse files Browse the repository at this point in the history
  • Loading branch information
patheard committed Apr 10, 2024
1 parent ae30231 commit c734ca0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ locals {
}

resource "aws_ssoadmin_account_assignment" "articles" {
for_each = { for perm in local.articles_permission_set_arns : perm.group.display_name => perm }
for_each = { for perm in local.articles_permission_set_arns : "${perm.group.display_name}-${perm.target_id}" => perm }

instance_arn = local.sso_instance_arn
permission_set_arn = each.value.permission_set_arn
Expand Down

0 comments on commit c734ca0

Please sign in to comment.