IAM user accessing EKS
Assuming EKS is created by someone else and it already exists, how do I get the login etc?
Getting started with kubectl on EKS:
- Install awscli https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
- Install kubectl https://docs.aws.amazon.com/eks/latest/userguide/install-kubectl.html (I'm using Client Version: v1.29.0)
- Run
aws configure
; Enter access key and secret key; region: us-east-2;
Reach out to your AWS Administrator if you don't have access key and secret key. - kubectl login: `aws eks update-kubeconfig --name <name_of_eks_cluster>
kubectl get svc
--> to verify;
In case of "error: You must be logged in to the server (the server has asked for the client to provide credentials)"
, ask the admin who created EKS cluster to add your user to configMap.