I used Gtlab to create an EKS cluster.
Now, I want to connect it to it but I get
error: You must be logged in to the server (Unauthorized)
My Kubectl config is created using the aws eks cli
aws eks --region eu-west-2 update-kubeconfig --name gitlab-runner
On Gitlab documenation it says " You must add your AWS external ID to the IAM Role in the AWS CLI to manage your cluster using kubectl
."
I have added the external_id of gitlab user to my default profile which has admin access.
How can I access the EKS cluster created by Gitlab?