Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 5, 2021
1 parent 357284a commit 742da8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ resource "aws_iam_user_login_profile" "user" {
# group membership
#---
resource "aws_iam_user_group_membership" "user_groups" {
for_each = toset(var.groups)
count = length(var.groups) != 0 ? 1 : 0
user = local.iam_username
groups = each.key
groups = var.groups
depends_on = [aws_iam_user.user]
}

Expand Down

0 comments on commit 742da8b

Please sign in to comment.