We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e04f08b + 517aa7c commit 812c1b0Copy full SHA for 812c1b0
modules/iam_identity_users/main.tf
@@ -29,6 +29,6 @@ resource "aws_identitystore_user" "this" {
29
resource "aws_identitystore_group_membership" "this" {
30
for_each = var.users
31
identity_store_id = tolist(data.aws_ssoadmin_instances.this.identity_store_ids)[0]
32
- group_id = aws_identitystore_group.this[each.value.display_name].id
33
- member_id = aws_identitystore_user.this[each.value.display_name].id
+ group_id = aws_identitystore_group.this[each.value.group].id
+ member_id = aws_identitystore_user.this[each.key].id
34
}
0 commit comments