You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any eksctl get command fails. Did not test other commands. This works well on the same EC2 instance where we are running the docker container.
eksctl get iamserviceaccount --cluster <cluster-name> # or any iamserviceaccount command
Expected Output:
app-ns app arn:aws:iam::xxxxx:role/xyz
What happened?
Any eksctl version higher than v0.185.0 does not work in a container while v0.185.0 works. We get the below error for anything above v0.185.0
Error: could not create cluster provider from options: checking AWS STS access – cannot get role ARN for current session: operation error STS: GetCallerIdentity, get identity: get credentials: failed to refresh cached credentials, operation error STS: AssumeRole, get identity: get credentials: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, canceled, context deadline exceeded
eksctl get iamserviceaccount --cluster xyz -v4
2024-10-25 03:57:15 [▶] Setting credentials expiry window to 30 minutes
2024-10-25 03:57:15 [▶] Setting credentials expiry window to 30 minutes
Error: could not create cluster provider from options: checking AWS STS access – cannot get role ARN for current session: operation error STS: GetCallerIdentity, get identity: get credentials: failed to refresh cached credentials, operation error STS: AssumeRole, get identity: get credentials: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, canceled, context deadline exceeded
Anything else we need to know?
OS: ubuntu 22.04 (both docker and ec2)
Downloaded the binary using the official documentation
Versions
$ eksctl info
eksctl version: 0.194.0
kubectl version: v1.31.2
OS: linux
The text was updated successfully, but these errors were encountered:
Hello cantonnetwork-infstones 👋 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
cantonnetwork-infstones
changed the title
[Bug] eksctl iamserviceaccount no EC2 IMDS role found, operation error ec2imds while running in docker container
[Bug] eksctl no EC2 IMDS role found, operation error ec2imds while running in docker container
Oct 25, 2024
What were you trying to accomplish?
Any
eksctl get
command fails. Did not test other commands. This works well on the same EC2 instance where we are running the docker container.Expected Output:
What happened?
Any eksctl version higher than
v0.185.0
does not work in a container whilev0.185.0
works. We get the below error for anything abovev0.185.0
The following command does give proper output
How to reproduce it?
To reproduce run any version of eksctl above
v0.185.0
in a docker container.~/aws/config
is configured as follows~/.aws/credentials
is configured as followsLogs
Anything else we need to know?
Versions
$ eksctl info
The text was updated successfully, but these errors were encountered: