Hi everyone — I’m trying to pass tags to the ECS Run task, but it doesn’t look like the tags are being propagated. Is this the right way to pass tags to the ECS tasks that the Prefect Agent will create?
a
Anna Geller
01/17/2022, 5:35 PM
Do you need it for cost allocation? Generally speaking, you can use the
--propagateTags
flag when starting the ECS Service for the agent.
You can also assign the tags to the ECS cluster, and the tags should propagate to ECS tasks as well:
I need it for access control! I managed to solve it by passing the tags as “run_task_kwargs”, as I only need the tags on the actual tasks, not the task definitions
Bruno Murino
01/17/2022, 5:58 PM
thanks!
a
Anna Geller
01/17/2022, 6:12 PM
Does it work using only run_task_kwargs? Can you share your solution with run config? I heard from other user who needed it for billing and cost management and they said it didn’t work for them unless they used the
--propagateTags
flag.
b
Bruno Murino
01/18/2022, 9:50 AM
this is my full run config. All tasks that the prefect agent created had the tag, but not the task definition
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.