m

    Matt Alhonte

    2 months ago
    Heya! How do we add tags to AWS ECS containers launched by Prefect? Like, what arguments do we pass to
    DaskExecutor
    and/or
    ECSRun
    ?
    Kevin Kho

    Kevin Kho

    2 months ago
    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
    m

    Matt Alhonte

    2 months ago
    Aha! The one in
    DaskExecutor
    was actually straightforward, but for ECSRunya need to add
    {"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