To run pexes as lambda functions, I often set envi...
# general
a
To run pexes as lambda functions, I often set environment variables, eg. PYTHONPATH; PEX_ROOT; etc. Can these be set via pexrc and, if so, how do I bundle that into the pex so it's in the right location? I'm trying to deploy a pex to lambda@edge, which doesn't allow environment variables.
b
I'm not sure about the details of packaging those into a PEX. Reading its docs https://docs.pex-tool.org and playing with its CLI would be a good way to answer that question. Do you need to run a pex as a lambda, vs. the
python_aws_lambda_function
style that's been unpacked before deploy?