Created
November 23, 2017 12:38
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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