I want to use docker image hosted on ECR and i want to automate the pull operation using cloudformation template.
I attached IAM role with ECR full access to ec2 instance and it doesn't work.
i am doing
docker pull 1234567897.dkr.ecr.us-west-2.amazonaws.com/repo:tag and iam getting the error
Error response from daemon: Get https://1234567897.dkr.ecr.us-west-2.amazonaws.com/repo:tag/manifests/latest: no basic auth credentials