Amazon Elastic Container Registry (ECR) is a fully-managed Docker container registry that makes it easy for developers to store, manage, and deploy Docker container images.
Create ECR Repository from the AWS Console, example:
Use the CLI to generate your login command
get-login-password is the new command and I am piping the response into the next
docker login command which is then read with
aws --profile carlos ecr get-login-password --region ap-southeast-2 | docker login --username AWS --password-stdin 000000000000.dkr.ecr.ap-southeast-2.amazonaws.com
aws ecr get-login --no-include-email --region ap-southeast-2
Now the image will be available at the ECR.