- Install AWS CLI if not. On Debian you can use:
sudo apt install awscli
pip install awscli
- 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=******
- Configure Docker with AWS.
eval $(aws ecr get-login --no-include-email --region us-east-1)