Interview Prep/AWS/EKS in Production

How do you manage who can access the EKS API?

IntermediateProductionEKS in Production
Answer

Use access entries (authentication mode API) instead of the legacy aws-auth ConfigMap: access is managed through the EKS API, so it is auditable in CloudTrail and manageable in Terraform, and a broken ConfigMap can no longer lock everyone out. Map Identity Center permission set roles to access policies like AmazonEKSClusterAdminPolicy or AmazonEKSViewPolicy, scoped to namespaces where needed, or to Kubernetes groups bound by your own RBAC.

aws eks create-access-entry --cluster-name prod --principal-arn arn:aws:iam::111122223333:role/AWSReservedSSO_Developer_abc
aws eks associate-access-policy --cluster-name prod --principal-arn arn:aws:iam::111122223333:role/AWSReservedSSO_Developer_abc \
  --policy-arn arn:aws:eks::aws:cluster-access-policy/AmazonEKSViewPolicy --access-scope type=namespace,namespaces=orders
aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on EKS in Production