Hello, how are you running your Prefect ECS agent?
You should provide your agent with access to ECR using IAM, and specify that in a task-definitions.yaml file (you can also specify a local file path).
Agent:
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.