<@ULVA73B9P>: When using ECS as a work pool, how c...
# ask-marvin
b
@Marvin: When using ECS as a work pool, how can I control the Task Definition, in the deployment?
m
Controlling the Task Definition when deploying to an ECS work pool with Prefect involves modifying the underlying work pool JSON definition. Some parameters of the Task Definition Template may not be available in the base job template of the Prefect ECS work pool. To set a specific task definition parameter, follow these general steps: 1. Navigate to the Prefect Cloud UI. 2. Locate the advanced tab of the work pool configuration. 3. Add the desired parameter to the work pool JSON definition there. For further details on the process, you can reference the blog post on orchestrating event-driven serverless data pipelines with Prefect, Pulumi, and AWS. The blog also mentions that adjustments can be submitted via job variables in the deployment step of the GitHub Action. Please note that this task requires familiarity with AWS Task Definitions and possibly a deeper dive into the Prefect Cloud UI.
n
how do you want to control it? cc @Kevin Grismore
👀 1
k
The ECS worker builds a task definition for you based on your work pool/deployment variables. If you want to use a preexisting one, you can provide an ARN on your work pool/deployment
b
Yep, I eventually found where this is configured, thanks.