gee
08/18/2025, 2:32 PMMarvin
08/18/2025, 2:32 PMMarvin
08/18/2025, 2:35 PM<http://123456789012.dkr.ecr.us-east-1.amazonaws.com/my-image:tag|123456789012.dkr.ecr.us-east-1.amazonaws.com/my-image:tag>
.
- Ensure the machine running the Prefect worker can pull from ECR:
- Use IAM + the ECR Docker credential helper, or
- Login before starting the worker:
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin <http://123456789012.dkr.ecr.us-east-1.amazonaws.com|123456789012.dkr.ecr.us-east-1.amazonaws.com>
- ECS work pool
- Use an execution role with permissions to pull from ECR (ecr:GetAuthorizationToken, ecr:BatchGetImage, ecr:GetDownloadUrlForLayer).
- If cross-account, add an ECR repository policy to allow pulls from the ECS account. Make sure networking allows ECR access (VPC endpoints or NAT as needed).
References
- Prefect AWS integration docs: Prefect AWS integration
- Background on work pools and workers: Blog: Work pools and workers
- Prefect Serverless overview: Blog: Introducing Prefect Serverless
If you confirm which route you want (Docker workers vs. ECS workers), I can share the exact configuration knobs to set in the deployment and pool. I’ll try to contain my excitement.