-
Notifications
You must be signed in to change notification settings - Fork 346
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
Incorrect user being picked for ecr login - not authorized - support of profiles on aws credentials #164
Comments
Hey @javapapo, It's not clear from your report which user is being used. Did you want the credential helper to use one of the named profiles in your If you don't specify credentials, the credential helper will attempt to locate credentials in an order similar to this:
This should be largely similar to the order used by other tools, like the AWS CLI. Sam |
Hello @samuelkarp Thanks for your comment. So I think I can see what is happening.
[sandbox-Ops]
aws_access_key_id = XXXX
aws_secret_access_key = XXXX
aws_session_token = XXXX
[prod-Ops-Techops]
aws_access_key_id = XXX
aws_secret_access_key = XXX
aws_session_token = XXX There is no is there any any case to support $(aws ecr get-login --no-include-email --region eu-west-1 --profile prod-Ops-Techops --registry-id xxxxxxxxx) |
Yes, the credential helper does support profiles. If you have multiple accounts configured in It's probably worth adding to the README and man page; let me know if you'd like to make this contribution. |
Hi @javapapo. We haven't heard back from you in a while, and I've updated the README to include more information about the |
It looks like |
@dinvlad Can you open a new issue with details of the problem you're encountering? I use the credential helper with |
Is there a solution for it? I am running into the same issue. I have multiple accounts in the credentials. |
@mkaschke Please open a new issue with details of the problem you're running into. Thanks! I'm locking this issue. If anyone in the future is running into problems, please open a new issue to describe the problems you're encountering. |
I have my
~/.aws/credentials
populated with different profiles (corp multi use account)Example :
I am trying to pull and I get this
How come is picking this user?
The text was updated successfully, but these errors were encountered: