The question is pretty straightforward but a little background always could be helpful.
I need to get a container id from the container itself, and the value of it will be used as a logfile name.
According to the docs ECS_CONTAINER_METADATA_URI_V4
is injected to each container.
But when I'm connection to a Fargate hosted containers through SSH, there is no such variable. Which is expected and I had created the topic for that before just to make sure my guess is correct.
So, is there a way to get the value of ECS_CONTAINER_METADATA_URI_V4