How do I resolve the error "You must be logged in to the server (Unauthorized)" when I connect to the Amazon EKS API server?

1 minute read

I use kubectl commands to connect to the Amazon Elastic Kubernetes Service (Amazon EKS) API server. I received the message "error: You must be logged in to the server (Unauthorized)".

AWS OFFICIAL
AWS OFFICIALUpdated 4 months ago
Gain access to this article with an AWS Premium Support plan
This page can only be viewed by users with an active AWS Premium Support plan. Click here to learn more about AWS Premium Support options. Already a Premium Support plan customer? Sign in using the link below.