I am trying to upload an image using ECR, to do so I am following these steps.
But when doing so, I get this error message:
.Password was unexpected at this time.
Is there another command that can be run in order to authenticate and proceed? I do have the AWS CLI installed already as well.
I am on Windows therefore I am trying to run this command:
(Get-ECRLoginCommand).Password | docker login --username AWS --password-stdin aws_account_id.dkr.ecr.region.amazonaws.com
After doing some digging, this command seems to resolve the issue:
Install-AWSToolsModule AWS.Tools.ECR
Afterwards, the original command should work as expected.