Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jul 19, 2022
1 parent 6cec47d commit da1d9b8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,9 @@ resource "aws_iam_group" "audit" {
# group membership
#---
resource "aws_iam_group_membership" "audit" {
for_each = aws_iam_user.audit
name = var.group
group = aws_iam_group.audit.name
users = each.value.name
name = var.group
group = aws_iam_group.audit.name
users = [for a in aws_iam_user.audit : a.name]
}

#---
Expand Down

0 comments on commit da1d9b8

Please sign in to comment.