h

    helpful-account-44059

    7 months ago
    Hi,i'm following the code to create new aws eks cluter, after
    pulumi up
    , i got this error:
    Diagnostics:
      eks:index:VpcCni (relation-aws-eks-cluter-vpc-cni):
        error: Command failed: kubectl apply -f C:\Users\Matrix\AppData\Local\Temp\tmp-6800oi250Aa7ZzSV.tmp
        error: You must be logged in to the server (the server has asked for the client to provide credentials)
    
      pulumi:pulumi:Stack (relation-aws-eks-cluter-dev):
        error: You must be logged in to the server (the server has asked for the client to provide credentials)
    
        error: update failed
    how to fix?
    if i run this command, it successwd
    aws eks update-kubeconfig --name relation-aws-eks-cluter-eksCluster-a8b83ef --region us-east-2
    b

    bored-oyster-3147

    7 months ago
    notice that in the error message pulumi is using
    kubectl apply
    not the
    aws eks
    command you are testing with. So make sure you are able to authenticate to your cluster with
    kubectl