How to detect if I'm running in AWS Lambda environment?
<p>I want to detect if my code is getting executed in AWS Lambda environment. Is there a good, documented way to do it? </p>

<p>Currently I'm depending on existence of environmental variable LAMBDA_TASK_ROOT which was described in the <a href="https://alestic.com/2014/11/aws-lambda-environment/" rel="noreferrer">Exploring The AWS Lambda Runtime Environment</a> blog post which feels wrong.</p>