I'm using Azure DevOps pipeline for CI/CD. I'm trying Dockerize and push my docker image to AWS ECR. I already add Docker Registry on Azure Devops (and have access to all pipelines) , I created and used IAM user with AdministrativeAccess and added credentials to Azure Devops. However on my Docker Push task I'm getting unauthorized: authentication required
error and my job fails.
This is my push task
- task: Docker@2
displayName: "PUSH IMAGE TO AWS"
inputs:
containerRegistry: AWS
repository: $(DOCKER_REPOSITORY_NAME)
command: push
enabled: true