8000 denied: Your Authorization Token has expired. Please run 'aws ecr get-login' to fetch a new one. · Issue #20 · sjednac/sbt-ecr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

denied: Your Authorization Token has expired. Please run 'aws ecr get-login' to fetch a new one. #20

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

Open
eugenemiretsky opened this issue Feb 7, 2018 · 1 comment

Comments

@eugenemiretsky
Copy link
eugenemiretsky commented Feb 7, 2018

Hi,

I am getting the following error:

denied: Your Authorization Token has expired. Please run 'aws ecr get-login' to fetch a new one.

Before the push, I can see:

[info] AWS account id: 07579032XXXX
The push refers to repository [07579032XXXX.dkr.ecr.ap-south-1.amazonaws.com/XXXX-service]

Which seems to suggest that the login was succesful.

Any ideas what may be the issue? (full log is attached)

Jenkins-error.txt

@sjednac
Copy link
Owner
sjednac commented Feb 11, 2018

Hi @eugenemiretsky,

Did you run ecr:login before ecr:push?

A successful login should look something like this in the current plugin version (from the sbt shell):

[my-project] $ ecr:login
[info] AWS account id: XXXXXXXXXXX
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Login Succeeded
[success] Total time: 4 s, completed Feb 11, 2018 4:28:21 AM
[my-project] $

The following line is responsible for doing that automatically in the sample config (the one in README.md):

// Authenticate and publish a local Docker image before pushing to ECR
push in Ecr := ((push in Ecr) dependsOn (publishLocal in Docker, login in Ecr)).value

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

No branches or pull requests

2 participants
0