Created
February 7, 2020 15:52
-
-
Save ThabetAmer/af2cc9f8a134c316827a13c168050b34 to your computer and use it in GitHub Desktop.
ECR login via CLI
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
#!/bin/bash | |
aws ecr get-login --no-include-email | sh | |
# to read the authentication string only, so it can be used in apps. | |
#aws ecr get-authorization-token --output text --query 'authorizationData[].authorizationToken' --region eu-central-1 \ | |
# | base64 -d | cut -d: -f2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment