I'm not sure if there's a way to do this already with python-lambda, but the node-lambda library handles it this way: https://github.com/motdotla/node-lambda#custom-environment-variables