title: kubectl Error: You must be logged in to the server
body: <p>I've checked almost all of the answers on here, but nothing has resolved this yet.</p>
  
  <p>When running <code>kubectl</code>, I will consistently get <code>error: You must be logged in to the server (Unauthorized)</code>. </p>
  
  <p>I have tried editing the config file via <code>kubectl config --kubeconfig=config view</code>, but I still receive the same error, even when running <code>kubectl edit -n kube-system configmap/aws-auth</code>.</p>
  
  <p>Even when I just try to analyze my clusters and run <code>aws eks list-clusters</code>, I receive a different error <code>An error occurred (UnrecognizedClientException) when calling the ListClusters operation: The security token included in the request is invalid</code>.</p>
  
  <p>I have completely torn down my clusters on EKS and rebuilding them, but I keep encountering these same errors. This is my first time attempting to use AWS EKS, and I've been trying different things for a few days.</p>
  
  <p>I've set my <code>aws configure</code></p>
  
  <pre><code>λ aws configure
  AWS Access Key ID [****************Q]: *****
  AWS Secret Access Key [****************5]: *****
  Default region name [us-west-2]: us-west-2
  Default output format [json]: json
  </code></pre>
  
  <p>Even when trying to look at the config map, I receive the same error:</p>
  
  <pre><code>λ kubectl describe configmap -n kube-system aws-auth
  
  error: You must be logged in to the server (Unauthorized)
  </code></pre>