-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Amazon ECR authentication failure #2812
Comments
I am not sure if you are using a credential helper or not, but can you take a look at #2627 (comment)? Also, I don't know what types of credentials are usable for ECR, but can you tell me the type you're using? For example, for the credentials that Also check #2627 (comment) in the same issue thread. |
Thanks a lot chanseokoh for following up and creating a new issue for this! Also, an answer over at stackoverlfow you made provided a very good introduction into the whole topic for me. So my problem was this: I used the values that are supposed to be put in AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY as username / password. That won't work, because they are only used by e.g. the credentials helper to create username (currently fixed to "AWS", just as you wrote) and password. I am now successfully pulling and pushing using with the ecr-login credentials helper. So thanks again! Now I only need to figure out if there is a way to use different AWS profiles for from and to... I have created #2814 for this problem, so you may close this issue. |
Thanks for the update! This is exactly #2627, so I'll close it as a dup. |
@chanseokoh Thanks for pushing 2.6.0.
I think 2. is what I am using, plus a tag:
123456789.dkr.ecr.ap-northeast-1.amazonaws.com/abc/def:base
Pushing/pulling using the docker cli works with that.
Unfortunately, the error is unchanged with v2.6.0:
Btw I have even tried to move username/password into the pom, to have the least possibility of a problem due to indirection via cred helpers, env vars etc.
To wit:
_Originally posted by @EugenDueck in #2784 (comment)
The text was updated successfully, but these errors were encountered: