hi, this is in regards to projects deployment. loo...
# prefect-getting-started
m
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
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
how? u have an example with ecs
j
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
do you have to use worker instead of agents for projects?
thanks
j
yes you do!
m
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
you can checkout the documentation here to see what options there are for each prefect.yaml step