From c867833667aaf4246eae9854f7a271a09d1e8bb4 Mon Sep 17 00:00:00 2001 From: cybershady Date: Tue, 27 Aug 2024 22:10:38 -0600 Subject: [PATCH] add each.value --- modules/iam_identity_center/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/iam_identity_center/main.tf b/modules/iam_identity_center/main.tf index d9f15e3..ed29c62 100644 --- a/modules/iam_identity_center/main.tf +++ b/modules/iam_identity_center/main.tf @@ -98,7 +98,7 @@ resource "aws_ssoadmin_account_assignment" "this" { instance_arn = tolist(data.aws_ssoadmin_instances.this.arns)[0] permission_set_arn = aws_ssoadmin_permission_set.this[each.value.policy_set].arn - principal_id = aws_identitystore_group.this.group_id + principal_id = aws_identitystore_group.this[each.value.groups].group_id principal_type = "GROUP" target_id = var.aws_account