Is there a possibility for an application that is launched as Fargate task to determine if it runs inside Amazon ECS without trying the task metadata endpoint?
It would be great if there are environment variables or files that can be read.
I also asked this question in the AWS forum: https://forums.aws.amazon.com/thread.jspa?threadID=296444