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

how to authenticate this proxy for ECR? #146

Open
moulichowdhary opened this issue Nov 13, 2022 · 2 comments
Open

how to authenticate this proxy for ECR? #146

moulichowdhary opened this issue Nov 13, 2022 · 2 comments

Comments

@moulichowdhary
Copy link

We use aws cli and generate a temporary token. Could you please help me understand how to use this proxy for ECR?

@robervexcel
Copy link

interesting for me too

@dambrosio
Copy link

Well, you could maybe try the following:

  • Add aws-cli tool to the Dockerfile
  • Check the REGISTRIES environment variable for AWS ECR-specific URL
  • If there is a AWS ECR URL create a .aws folder with the required config and credentials files used by aws-cli: look at a host config and credential file to see what content is required as well as file permissions
  • Use aws ecr get-login --no-include-email to get the password
  • AUTH_USER=AWS and AUTH_PASS comes from the aws ecr call
  • You will need a script that renews the AWS token periodically (maybe every 6 hours or so)

A lot of this detail was borrowed from https://github.com/Lotto24/aws-ecr-http-proxy

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

3 participants