https://prefect.io logo
Title
m

marque

09/29/2022, 5:56 AM
Hi, it seems like DockerContainer block does not support ECR image yet? My agent is failing to authenticate with ECR. I'm basically doing something like this https://github.com/anna-geller/prefect-docker-deployment/blob/main/blocks/dockerhub_block.py but with ecr
1
a

Anna Geller

09/29/2022, 9:29 AM
The fix to this was merged 3 days ago here https://github.com/PrefectHQ/prefect/pull/6889 and will be released today 🎉 if you want to test out if this fixes the issue for you, you could install from main or wait for 2.4.3 release later today
there's also this open PR so we are definitely aware of the issue https://github.com/PrefectHQ/prefect-aws/pull/68
not sure if you would be interested in using ECS, but if you do, this repo template works out of the box with ECR and ECS: https://github.com/anna-geller/dataflow-ops
m

marque

09/29/2022, 9:49 AM
Awesome thanks! Will wait for the 2.4.3 release and try it out again. And thanks for the reference, I am indeed going to use ECS 🙂
👍 1
a

Anna Geller

09/29/2022, 11:02 AM
if you're using ECS then no need to wait for this release since you don't need ECR registry block, the
ECSTask
can pull the image from ECR as long as you attach the IAM permission to it using the task execution role
the ECR block is only needed if you want to use it to leverage ECR images on on-prem server
👍 1
m

marque

09/29/2022, 12:00 PM
We have a hybrid business model so we'd need both ECSTask for cloud & ECR block on-prem I believe 😄
a

Anna Geller

09/29/2022, 6:05 PM
interesting -- so there is this option of using ECS Anywhere, allowing you to still use ECSTask block but running on-prem, but I haven't tried that and understand if this may be too complicated to set up