I'm having trouble to start an ECS task on a On-Demand EC2. I have an AWS account that is a sub-account from a organization, and I've been unable to make the ECS agent pull the image from ECR, the task stops with the following error:
CannotPullContainerError: Error response from daemon: pull access denied
I've set the permissions on ECR for my account and the ecsInstanceRole. Also, I've already tried to set admin permissions for the iam roles, but no success.
What kind of permission do I need to have to allow the pull of the image?