Skip to content

Instantly share code, notes, and snippets.

@dkgndianko
Last active September 30, 2020 15:10
Show Gist options
  • Save dkgndianko/a8217d7539e7f387a332a61210a6108f to your computer and use it in GitHub Desktop.
Save dkgndianko/a8217d7539e7f387a332a61210a6108f to your computer and use it in GitHub Desktop.
Confiure AWS Elastic Container Registry
  1. Install AWS CLI if not. On Debian you can use:
sudo apt install awscli
pip install awscli
  1. Configure AWS. For that you will need secret key and access key.
aws configure

this will write credentials to ~/.aws/credentials. You can achieve the same thing by defining AWS credentials in the environment.

export AWS_ACCESS_KEY_ID=******
export AWS_SECRET_ACCESS_KEY=******
  1. Configure Docker with AWS.
eval $(aws ecr get-login --no-include-email --region us-east-1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment