Problem for access eks from another IAM user

0

i am create eks using terraform and delete that user after that create new user and i want to access that eks i got error even though i have loged in error: You must be logged in to the server (Unauthorized)

1 Answer
0

I think the easiest way to gain access to cluster is to re-create the IAM user you used to create the cluster. That should give you access to edit config and grant access to other users as described in https://docs.aws.amazon.com/eks/latest/userguide/add-user-role.html

Or if that is not possible, aws eks update-kubeconfig could reset the configuration. See https://awscli.amazonaws.com/v2/documentation/api/latest/reference/eks/update-kubeconfig.html

profile picture
EXPERT
Kallu
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions