jckuester / awsls

A list command for AWS resources
MIT License
825 stars 53 forks source link

Getting 'operation error STS: GetCallerIdentity, failed to sign request' #53

Open rns-vs opened 2 years ago

rns-vs commented 2 years ago

Just trying to get started with this tool. Installed version 0.11.0 from brew on MacOS, but when I try to a basic test with:

awsls --debug aws_instance

... I get this error:

Error aws_instance: failed to get caller identity: operation error STS: GetCallerIdentity, exceeded maximum number of attempts, 3, failed to sign request: failed to retrieve credentials: no EC2 IMDS role found, operation error ec2imds: GetMetadata, exceeded maximum number of attempts, 3, request send failed, Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": dial tcp 169.254.169.254:80: connect: host is down

I can run aws sts get-caller-identity successfully.

Any hints/pointers to what the issue might be here?

Thanks! Robert.

chrispruitt commented 1 year ago

I saw this issue today as well

frederick-fernando commented 3 months ago

Same issue here