hundreds-portugal-17080
06/16/2020, 7:27 PMimport * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as awsx from "@pulumi/awsx";
import * as eks from "@pulumi/eks";
// Create an EKS cluster with the default configuration.
const cluster = new eks.Cluster("my-cluster");
// Export the cluster's kubeconfig.
export const kubeconfig = cluster.kubeconfig
+ ├─ pulumi-nodejs:dynamic:Resource my-cluster-vpc-cni **creating failed** 1 error
+ └─ kubernetes:core:ConfigMap my-cluster-nodeAccess **creating failed** 1 error
Diagnostics:
pulumi:pulumi:Stack (dpstudio-dev):
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
create-cluster | delete-cluster
describe-cluster | describe-update
list-clusters | list-updates
update-cluster-config | update-cluster-version
update-kubeconfig | wait
help
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
create-cluster | delete-cluster
describe-cluster | describe-update
list-clusters | list-updates
update-cluster-config | update-cluster-version
update-kubeconfig | wait
help
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
create-cluster | delete-cluster
describe-cluster | describe-update
list-clusters | list-updates
update-cluster-config | update-cluster-version
update-kubeconfig | wait
help
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
create-cluster | delete-cluster
describe-cluster | describe-update
list-clusters | list-updates
update-cluster-config | update-cluster-version
update-kubeconfig | wait
help
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
create-cluster | delete-cluster
describe-cluster | describe-update
list-clusters | list-updates
update-cluster-config | update-cluster-version
update-kubeconfig | wait
help
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
create-cluster | delete-cluster
describe-cluster | describe-update
list-clusters | list-updates
update-cluster-config | update-cluster-version
update-kubeconfig | wait
help
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
create-cluster | delete-cluster
describe-cluster | describe-update
list-clusters | list-updates
update-cluster-config | update-cluster-version
update-kubeconfig | wait
help
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
create-cluster | delete-cluster
describe-cluster | describe-update
list-clusters | list-updates
update-cluster-config | update-cluster-version
update-kubeconfig | wait
help
unable to recognize "/var/folders/h8/wv5qbxfn3254vqjqsf7lm69h0000gn/T/tmp-8927Kam6To1jc3md.tmp": Get <https://1E899CD28737866B1F4B0D888B3ECA7E.gr7.us-west-2.eks.amazonaws.com/api?timeout=32s>: getting credentials: exec: exit status 2
unable to recognize "/var/folders/h8/wv5qbxfn3254vqjqsf7lm69h0000gn/T/tmp-8927Kam6To1jc3md.tmp": Get <https://1E899CD28737866B1F4B0D888B3ECA7E.gr7.us-west-2.eks.amazonaws.com/api?timeout=32s>: getting credentials: exec: exit status 2
unable to recognize "/var/folders/h8/wv5qbxfn3254vqjqsf7lm69h0000gn/T/tmp-8927Kam6To1jc3md.tmp": Get <https://1E899CD28737866B1F4B0D888B3ECA7E.gr7.us-west-2.eks.amazonaws.com/api?timeout=32s>: getting credentials: exec: exit status 2
unable to recognize "/var/folders/h8/wv5qbxfn3254vqjqsf7lm69h0000gn/T/tmp-8927Kam6To1jc3md.tmp": Get <https://1E899CD28737866B1F4B0D888B3ECA7E.gr7.us-west-2.eks.amazonaws.com/api?timeout=32s>: getting credentials: exec: exit status 2
unable to recognize "/var/folders/h8/wv5qbxfn3254vqjqsf7lm69h0000gn/T/tmp-8927Kam6To1jc3md.tmp": Get <https://1E899CD28737866B1F4B0D888B3ECA7E.gr7.us-west-2.eks.amazonaws.com/api?timeout=32s>: getting credentials: exec: exit status 2
error: update failed
pulumi-nodejs:dynamic:Resource (my-cluster-vpc-cni):
error: Command failed: kubectl apply -f /var/folders/h8/wv5qbxfn3254vqjqsf7lm69h0000gn/T/tmp-8927Kam6To1jc3md.tmp
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
create-cluster | delete-cluster
describe-cluster | describe-update
list-clusters | list-updates
update-cluster-config | update-cluster-version
update-kubeconfig | wait
help
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
create-cluster | delete-cluster
describe-cluster | describe-update
list-clusters | list-updates
update-cluster-config | update-cluster-version
update-kubeconfig | wait
help
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
create-cluster | delete-cluster
describe-cluster | describe-update
list-clusters | list-updates
update-cluster-config | update-cluster-version
update-kubeconfig | wait
help
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
create-cluster | delete-cluster
describe-cluster | describe-update
list-clusters | list-updates
update-cluster-config | update-cluster-version
update-kubeconfig | wait
help
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
create-cluster | delete-cluster
describe-cluster | describe-update
list-clusters | list-updates
update-cluster-config | update-cluster-version
update-kubeconfig | wait
help
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
create-cluster | delete-cluster
describe-cluster | describe-update
list-clusters | list-updates
update-cluster-config | update-cluster-version
update-kubeconfig | wait
help
unable to recognize "/var/folders/h8/wv5qbxfn3254vqjqsf7lm69h0000gn/T/tmp-8927Kam6To1jc3md.tmp": Get <https://1E899CD28737866B1F4B0D888B3ECA7E.gr7.us-west-2.eks.amazonaws.com/api?timeout=32s>: getting credentials: exec: exit status 2
unable to recognize "/var/folders/h8/wv5qbxfn3254vqjqsf7lm69h0000gn/T/tmp-8927Kam6To1jc3md.tmp": Get <https://1E899CD28737866B1F4B0D888B3ECA7E.gr7.us-west-2.eks.amazonaws.com/api?timeout=32s>: getting credentials: exec: exit status 2
unable to recognize "/var/folders/h8/wv5qbxfn3254vqjqsf7lm69h0000gn/T/tmp-8927Kam6To1jc3md.tmp": Get <https://1E899CD28737866B1F4B0D888B3ECA7E.gr7.us-west-2.eks.amazonaws.com/api?timeout=32s>: getting credentials: exec: exit status 2
unable to recognize "/var/folders/h8/wv5qbxfn3254vqjqsf7lm69h0000gn/T/tmp-8927Kam6To1jc3md.tmp": Get <https://1E899CD28737866B1F4B0D888B3ECA7E.gr7.us-west-2.eks.amazonaws.com/api?timeout=32s>: getting credentials: exec: exit status 2
unable to recognize "/var/folders/h8/wv5qbxfn3254vqjqsf7lm69h0000gn/T/tmp-8927Kam6To1jc3md.tmp": Get <https://1E899CD28737866B1F4B0D888B3ECA7E.gr7.us-west-2.eks.amazonaws.com/api?timeout=32s>: getting credentials: exec: exit status 2
kubernetes:core:ConfigMap (my-cluster-nodeAccess):
error: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: Get "<https://1E899CD28737866B1F4B0D888B3ECA7E.gr7.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s>": getting credentials: exec: exit status 2
Resources:
billowy-army-68599
hundreds-portugal-17080
06/16/2020, 7:57 PMbroad-dog-22463
06/16/2020, 8:23 PMbreezy-hamburger-69619
06/16/2020, 8:48 PMaws
CLI related issues to request and embed an aws eks get-token
into the kubeconfig for auth — which the vpcCNI and nodeAccess configMap use.
My guess is that you’re aws CLI needs to be updated to a current version, as aws eks get-token
came in after v1.16.156
: https://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.html1.18.17
per https://github.com/pulumi/pulumi-eks#pre-requisites, but it appears AWS updated this to be >= 1.16.156
recentlyhundreds-portugal-17080
06/16/2020, 8:54 PMbillowy-army-68599
aws sts get-caller-identity
would indicate to me you don't have valid AWS credentials loaded, can you verify that? how are you loading your credentials?hundreds-portugal-17080
06/16/2020, 10:00 PM