You can specify environment variables for AWS Lambda either by using AWS Console or CLI. Here is a code for setting up lambda using CLI:
aws lambda create-function \
--region us-east-1
--function-name myTestFunction
--zip-file fileb://path/package.zip
--role role-arn
--environment Variables={LD_LIBRARY_PATH=/usr/bin/test/lib64}
--handler index.handler
--runtime nodejs4.3
--profile default
Need help mastering AWS Lambda and other AWS skills? Go through AWS Training Page and become an AWS expert!