Skip to content

Commit 6e0ca94

Browse files
committed
try and fix group membership
1 parent efe8921 commit 6e0ca94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/iam_identity_center/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
variable "permission_sets" {
2-
type = list(object({
2+
type = map(object({
33
name = string
44
description = string
55
relay_state = string

modules/iam_identity_users/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ resource "aws_identitystore_user" "this" {
2929
resource "aws_identitystore_group_membership" "this" {
3030
for_each = var.users
3131
identity_store_id = tolist(data.aws_ssoadmin_instances.this.identity_store_ids)[0]
32-
group_id = aws_identitystore_user.this[each.value.groups].id
32+
group_id = aws_identitystore_group.this[each.value.groups].id
3333
member_id = aws_identitystore_user.this[each.key].id
3434
}

0 commit comments

Comments
 (0)