Skip to content

Instantly share code, notes, and snippets.

@ThabetAmer
Created February 7, 2020 15:52
Show Gist options
  • Save ThabetAmer/af2cc9f8a134c316827a13c168050b34 to your computer and use it in GitHub Desktop.
Save ThabetAmer/af2cc9f8a134c316827a13c168050b34 to your computer and use it in GitHub Desktop.
ECR login via CLI
#!/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