Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error retrieving credentials / ECR Registry #5

Open
miracle2k opened this issue May 4, 2024 · 1 comment
Open

Error retrieving credentials / ECR Registry #5

miracle2k opened this issue May 4, 2024 · 1 comment

Comments

@miracle2k
Copy link

I am getting a bunch of errors like this:

time="2024-05-04T08:04:25Z" level=error msg="Error retrieving credentials" error="ecr: Failed to get authorization token: operation error ECR: GetAuthorizationToken, get identity: get credentials: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, request canceled, context deadline exceeded"

E0504 08:04:25.125601       1 archfilter.go:167] "failed to get image architectures" err=<
	GET https://....dkr.ecr.eu-west-2.amazonaws.com/v2/.../manifests/latest: unexpected status code 401 Unauthorized: Not Authorized

I realize this is a kops / AWS specific issue, but still curious if someone knows the process to setup the permissions.

@ElementTech
Copy link
Owner

It seems like you need to enable IMDSv2 on your EC2 nodes, or allow your AWS role to use IMDS to begin with. It's an AWS issue, I mean you have to ensure your role has access to what it complains about until it's solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants