AWS Lambda does not support environment variables:
http://stackoverflow.com/questions/36230545/how-can-i-use-environmental-variables-on-aws-lambda/
Is there some other way to configure debug that would work with Lambda?
Or is there some other module like debug that works with Lambda?