Hi all! I’m trying to migrate my Prefect v1 flow t...
# ask-community
e
Hi all! I’m trying to migrate my Prefect v1 flow to v2 and I’m having a hard time wrapping my head around the process. On v1, we’re using Docker for storage and running them on ECS. How can I do the same in v2? Or do I have to think of this differently? So far I: 1. Created an Prefect agent on ECS using Terraform 2. Wrote my flow code Now I’m trying to deploy it, but how!
1
r
examples here using gcp but should give you enough https://github.com/anna-geller/prefect-docker-deployment/tree/main
e
Thanks @David Frischer and @redsquare! I’m still having trouble figuring this all out. I want to run the dockerized flow on ECS. From my understanding I shouldn’t use the
docker
infra block, right? Or should I be using an
ECSTask
?
r
Yeah you will need an ECSTask block where you can set the image
e
so the image of the ECSTask block is the agent runner? And that’s just a custom image?
AND it’s storage too?
that walks you through
🙌 2