https://prefect.io logo
Title
m

mondras

05/17/2023, 12:05 AM
hi, this is in regards to projects deployment. looking at example , where is infra-block given. for example, if i were running a deployment via CLI, i would put
--infra-block ecs-task/prefect-project
?
1
👀 1
j

Jamie Zieziula

05/17/2023, 12:15 AM
hi @mondras! If you are using projects, infra blocks won’t be necessary! Instead you can define the relevant infrastructure pieces in your work pool / your deployment.yaml file
m

mondras

05/17/2023, 12:16 AM
how? u have an example with ecs
j

Jamie Zieziula

05/17/2023, 12:18 AM
You’ll need to create a work pool of type
Amazon Elastic Container Service
There, you will define most (if not all) of the configuration you previously defined in the infra block
This is an example of deploying a worker on ECS
m

mondras

05/17/2023, 2:03 AM
do you have to use worker instead of agents for projects?
thanks
j

Jamie Zieziula

05/17/2023, 2:14 AM
yes you do!
m

mondras

05/17/2023, 3:34 AM
looking at the worker types, https://docs.prefect.io/latest/concepts/work-pools/#worker-types, seems ecs is not supported, unless i am missing something
so okay, 1. build a work pool from ecs; 2. spin up a worker i.e. "agent"; 3. build image on prefect.yaml. i'm sorry though, in reference to the prefect.yaml what options are available for this step?
j

Jamie Zieziula

05/17/2023, 2:48 PM
you can checkout the documentation here to see what options there are for each prefect.yaml step