Вот, пожалуйста, ниже работает для меня.
hal config provider docker-registry account add my-ecr-registry \
--address https://< Your ECR Endpoint> \
--username AWS \
--password-command "aws --region us-east-1 ecr get-authorization-token --output text --query 'authorizationData[].authorizationToken' | base64 -d | sed 's/^AWS://'"