This code is referenced in the following articles: lambdash: AWS Lambda Shell Hack http://alestic.com/2014/11/aws-lambda-shell Exploring The AWS Lambda Runtime Environment http://alestic.com/2014/11/aws-lambda-environment Please read them for more information.