Is it possible to dynamically set values in AWS ECS task definitions? For example. I have the following volume definition.
"volumes": [
{
"host": {
"sourcePath": "/tmp/logs/registrations"
},
"name": "logs"
}
],
I would like do do something like /tmp/logs/<container_id>
.
I am trying to do this because I have multiple containers running the same app. I need to mount each containers log directory for a sumologic collector. The problem is if the directories aren't namespaced by container then the mounts will conflict.