The Amazon ECS task execution role is required to use the private registry authentication feature. This allows the container agent to pull the container image. For more information, see Private registry authentication for tasks.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html