eksctl-io / eksctl

The official CLI for Amazon EKS
https://eksctl.io
Other
4.87k stars 1.4k forks source link

Docker usage examples not working #7893

Closed NinoSkopac closed 1 week ago

NinoSkopac commented 1 month ago

From https://gallery.ecr.aws/eksctl/eksctl:

With AWS credentials

docker run --rm -it -v ~/.aws:/root/.aws public.ecr.aws/eksctl/eksctl get clusters

Error: AWS Region must be set, please set the AWS Region in AWS config file or as environment variable

Then I try

docker run --rm -it -e AWS_REGION=us-east-1 -v ~/.aws:/root/.aws public.ecr.aws/eksctl/eksctl get clusters

Error: checking AWS STS access – cannot get role ARN for current session: operation error STS: GetCallerIdentity, get identity: get credentials: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, canceled, context deadline exceeded

github-actions[bot] commented 1 month ago

Hello NinoSkopac :wave: Thank you for opening an issue in eksctl project. The team will review the issue and aim to respond within 1-5 business days. Meanwhile, please read about the Contribution and Code of Conduct guidelines here. You can find out more information about eksctl on our website

NinoSkopac commented 1 month ago

It's because I have multiple profiles, I'm guessing?

This works

docker run --rm -it -e AWS_REGION=us-east-1 -e AWS_PROFILE=$AWS_PROFILE -v ~/.aws:/root/.aws -v $(pwd):/eksctl public.ecr.aws/eksctl/eksctl get cluster
github-actions[bot] commented 1 week ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 week ago

This issue was closed because it has been stalled for 5 days with no activity.