Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Oct 14, 2021
1 parent 7948c95 commit 8556565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patch-aws-auth/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ data "kubernetes_config_map" "aws-auth" {

# map users without ARNs to arns
data "aws_iam_user" "auth_users" {
for_each = toset([for u in local.joined_auth_users : u.aws_username])
for_each = toset([for u in local.joined_auth_users : u.aws_username if u.aws_username != ""])
user_name = each.key
}

# map roles without ARNs to arns
data "aws_iam_role" "auth_roles" {
for_each = toset([for r in local.joined_auth_roles : r.aws_rolename])
for_each = toset([for r in local.joined_auth_roles : r.aws_rolename if r.aws_rolename != ""])
name = each.key
}

Expand Down

0 comments on commit 8556565

Please sign in to comment.