https://prefect.io logo
#prefect-community
Title
# prefect-community
m

Matt Alhonte

07/21/2022, 6:59 PM
Heya! How do we add tags to AWS ECS containers launched by Prefect? Like, what arguments do we pass to
DaskExecutor
and/or
ECSRun
?
k

Kevin Kho

07/21/2022, 7:29 PM
I suspect this would go in the task definition passed in to ECSRun but if you use a DaskExecutor, the tags may not propagate there. Seems like ECSCluster takes a tags argument based on this
👍 2
m

Matt Alhonte

07/26/2022, 11:50 PM
Aha! The one in
DaskExecutor
was actually straightforward, but for `ECSRun`ya need to add
Copy code
{"name": "ENABLE_ECS_MANAGED_TAGS", "value": "true"},

{"name": "PROPAGATE_TAGS", "value": "true"},
under
environment
under
containerDefinitions
, and the tags need to be under
run_task_kwargs
marvin 1
6 Views