-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Support for Logon to Amazon EC2 Container Registry #29579
Comments
From @ansibot on 2016-10-16T15:34:56Z @olsaki ping, this issue is waiting for your response. |
From @leedm777 on 2016-10-16T15:34:56Z @osiegmar Have you tried amazon-ecr-credential-helper? |
you can use
(the result is returned base64 encoded with a |
needs_contributor |
Hello all! There's a PR which should fix this if used with https://github.com/awslabs/amazon-ecr-credential-helper (or some other credential helper for Amazon ECR, if there's one): #63158 Could you please give it a try and see whether it works for you? |
From @osiegmar on 2016-10-16T15:34:56Z
ISSUE TYPE
COMPONENT NAME
docker_login
ANSIBLE VERSION
SUMMARY
As far as I know, the only way to logon to (and pull docker images from / push to) Amazon ECR is via the shell module. It would be nice if the docker_login module supports logon to ECR so that further ansible docker tasks can directly work with ECR.
This is how I handle this currently:
The output from
aws ecr get-login
is:The generated password is valid for 12 hours.
Of course, I could use awk to get the password from the output and then use docker_login. But the output format may change...
Copied from original issue: ansible/ansible-modules-core#5277
The text was updated successfully, but these errors were encountered: