Skip to content

Commit

Permalink
try and fix group membership
Browse files Browse the repository at this point in the history
  • Loading branch information
zachrundle committed Aug 25, 2024
1 parent efe8921 commit 6e0ca94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/iam_identity_center/variables.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
variable "permission_sets" {
type = list(object({
type = map(object({
name = string
description = string
relay_state = string
Expand Down
2 changes: 1 addition & 1 deletion modules/iam_identity_users/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ resource "aws_identitystore_user" "this" {
resource "aws_identitystore_group_membership" "this" {
for_each = var.users
identity_store_id = tolist(data.aws_ssoadmin_instances.this.identity_store_ids)[0]
group_id = aws_identitystore_user.this[each.value.groups].id
group_id = aws_identitystore_group.this[each.value.groups].id
member_id = aws_identitystore_user.this[each.key].id
}

0 comments on commit 6e0ca94

Please sign in to comment.