I am trying to get the TaskId for logging purposes. I am following this. I have added the environment variable:
TaskId
ECS_ENABLE_CONTAINER_METADATA=\'true\