Skip to content

Instantly share code, notes, and snippets.

@unusedPhD
Created November 23, 2017 12:38
Show Gist options
  • Save unusedPhD/cb30ee2613e040910897b960a66a055e to your computer and use it in GitHub Desktop.
Save unusedPhD/cb30ee2613e040910897b960a66a055e to your computer and use it in GitHub Desktop.
Use cgswong/aws docker image to login to aws ecr. Useful when awscli is not installed.
eval $(docker run --rm \
-e AWS_ACCESS_KEY_ID=$aws_access_key_id\
-e AWS_SECRET_ACCESS_KEY=$aws_secret_access_key \
-e AWS_DEFAULT_REGION=ca-central-1 \
cgswong/aws aws ecr --no-include-email get-login)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment