Skip to content

Instantly share code, notes, and snippets.

@altitdb
Created August 2, 2018 19:48
Show Gist options
  • Save altitdb/11116cb8cca49cf196c1e65b21be8a67 to your computer and use it in GitHub Desktop.
Save altitdb/11116cb8cca49cf196c1e65b21be8a67 to your computer and use it in GitHub Desktop.
export _DOCKER_REPO="$(aws ecr get-authorization-token --output text --query 'authorizationData[].proxyEndpoint')"
aws ecr get-login --no-include-email --region us-east-1 | awk '{print $6}' | docker login -u AWS --password-stdin $_DOCKER_REPO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment