Skip to content

Commit

Permalink
fix terraform duplicate map key tflint error on policy
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoucgitter committed Oct 14, 2024
1 parent 09c357f commit 0d2f59a
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -174,34 +174,31 @@ module "eks" {
console_access = {
kubernetes_groups = []
principal_arn = "arn:aws:iam::203918876413:role/aws-reserved/sso.amazonaws.com/AWSReservedSSO_AdministratorAccess_7a114f4a1db191fc"
#user_name = "iacauto_terraform"
user_name = local.aws_caller_identity_user_name
type = "STANDARD"
user_name = local.aws_caller_identity_user_name
type = "STANDARD"

policy_associations = {
console_policy_assoc = {
policy_arn = "arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy"
access_scope = {
type = "cluster"
type = "cluster"
}
}
}
},
cluster_creator = {
kubernetes_groups = ["rbac.authorization.k8s.io"]
principal_arn = data.aws_caller_identity.terraform.arn
user_name = local.aws_caller_identity_user_name
type = "STANDARD"
user_name = local.aws_caller_identity_user_name
type = "STANDARD"

policy_associations = {
cluster_creator_assoc = {
policy_arn = "arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy"
access_scope = {
type = "cluster"
type = "cluster"
}
}
},
policy_associations = {
},
namespace_creator_assoc = {
policy_arn = "arn:aws:eks::aws:cluster-access-policy/AmazonEKSAdminPolicy"
access_scope = {
Expand Down

0 comments on commit 0d2f59a

Please # to comment.