I have created a NON default cluster on AWS ECS and I am able to pull docker images from docker public repository and run it too for testing.
I then created a ECS private repo and built and pushed an image to this repository and it succeeds. But when I try to pull it manually using docker pull, it complains with following error:
Error response from daemon: Get https://532193077341.dkr.ecr.ap-south-1.amazonaws.com/v2/12r/manifests/latest: no basic auth credentials
It seems to be an issue with IAM roles and permissions but I am not sure which role/policy to change.
ecr:GetDownloadUrlForLayer, ecr:BatchGetImage and ecr:BatchCheckLayerAvailabilitypermission ? - sayboras