Use ECS task Tags instead of TaskDefinition as docker labels store


I'm implementing a solution for dynamic reverse proxy to backends running in ECS as a one-off tasks using Traefik v1 - described here and it requires one task definition per task, because Docker labels, where Traefik configuration is stored are the properties of a task definition, not a task itself.

I'm wondering, how much Golang code change is required to read docker labels from ECS task tags definition, instead of TaskDefinition. Or maybe there is a simpler way to achive it?