Skip to content

Instantly share code, notes, and snippets.

@1eedaegon
Last active April 7, 2025 06:40
Show Gist options
  • Save 1eedaegon/d42860187d478d71aa393a80bbb83029 to your computer and use it in GitHub Desktop.
Save 1eedaegon/d42860187d478d71aa393a80bbb83029 to your computer and use it in GitHub Desktop.
How to AWS ECR login using aws cli
#!/bin/sh
REGION=ap-northeast-2
$(aws ecr get-login --no-include-email --region $REGION)
# OR
# aws ecr get-login-password --region $REGION | docker login AWS --password-stdin [NUMBER].dkr.ecr.$REGION.amazonaws.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment