ECR is same as docker hub that has registery/repository where u can push images
Open ECR
Create a new repo ( here mutable means same repo again writable )
Create new AWS credentials that have access to ECR (in the IAM console)
Create security credentials for the user ( click on “create key” go further that gives u id pass )
Install the aws cli - https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
Store the aws credentials locally
aws configure
aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 951687562889.dkr.ecr.ap-south-1.amazonaws.com
docker tag node-app:latest 951687562889.dkr.ecr.ap-south-1.amazonaws.com/hkirat/node-app:latest
docker push 951687562889.dkr.ecr.ap-south-1.amazonaws.com/hkirat/node-app:latest
—→ just follow this below after completing aws configure