Hi, it seems like DockerContainer block does not s...
# prefect-community
m
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
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
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
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
We have a hybrid business model so we'd need both ECSTask for cloud & ECR block on-prem I believe 😄
a
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