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 ff380e1 commit 7948c95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions patch-aws-auth/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ locals {
existing_roles = local.existing_roles_string != "" ? yamldecode(local.existing_roles_string) : []
existing_users = local.existing_users_string != "" ? yamldecode(local.existing_users_string) : []

joined_auth_users = concat(local.aws_auth_users, var.aws_auth_users)
joined_auth_roles = concat(local.aws_auth_roles, var.aws_auth_roles)
# joined_auth_users = concat(local.aws_auth_users, var.aws_auth_users)
# joined_auth_roles = concat(local.aws_auth_roles, var.aws_auth_roles)
joined_auth_users = var.aws_auth_users
joined_auth_roles = var.aws_auth_roles

mapped_auth_users = [for u in local.joined_auth_users : {
userarn = data.aws_iam_user.auth_users[u.aws_username].arn
Expand Down

0 comments on commit 7948c95

Please sign in to comment.