I am trying to push my Nest.js app to an AWS ECR in a public repo. I created an IAM user and attached AdminstratorAccess policy to it and then generated a private key. When I type the following command in cmd:
aws ecr-public get-login-password --region us-east-1 | docker login --username
AWS --password-stdin public.ecr.aws/.....
I get the following error:
Error saving credentials: error storing credentials - err: exit status 1, out: `error storing credentials - err: exit status 1, out: `The stub received bad data.``
I have AWS CLI installed.