Skip to content

EKS throws an authentication error after provisioning #7694

Discussion options

You must be logged in to vote

Summary: the AWS CLI version you're using has a bug, update it to > 2.2.25

Longer answer

This has been reported several times in pulumi/pulumi-eks#599 and pulumi/pulumi-eks#600

The reason this error is occurring is because of your AWS CLI, as mentioned in this issue: aws/aws-cli#6308

When you provision an EKS cluster, your KUBECONFIG file looks a little bit like this:

{
  "apiVersion": "v1",
  "clusters": [
    {
      "cluster": {
        "certificate-authority-data": "<base64>",
        "server": "<clusterName"
      },
      "name": "kubernetes"
    }
  ],
  "contexts": [
    {
      "context": {
        "cluster": "kubernetes",
        "user": "aws"
      },
      "name": "aws"
    }
…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mattstratton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant