[Solved]AWS ECR keep waiting: --profile is created using aws configure --profile
Reference: https://stackoverflow.com/a/70453287/1802483 Problem: You are trying to push a docker image to ECR While you use the command provided by AWS and show "Login successfully" when running this command: `aws ecr get-login-password --region <your_region> | docker login --username AWS --password-stdin <aws-account-id>.dkr.ecr.<your-region>.amazonaws.com`, you still saw "Waiting" or "Preparing" when you run `docker push` Possible reason and solution: Chances are you are using multiple AWS accounts You need to "login" to correct AWS ECR account when you run `aws ecr get-login-password` If you read the link above, you would see a parameter called `--profile` `--profile` is actually created using `aws configure --profile <your_profile_name>` i.e. To push to your ECR using correct account, you need to create a new profile by running `aws configure --profile <your_new_profile_name>` To create a new profile, you need ...