No module named requests error:
First create a directory for your lambda function:
mkdir lambda_function
cd lambda_function
Then install requests library into that directory
pip install requests -t
After that, add lambda_function to the directory
cp /path/to/your/lambda_function.py .
zip the contents of the directory
zip -r lambda_function.zip .
At last, Upload the zipped file to AWS Lambda
The error is unable to import ‘lambda_functions’: No module named requests tells you the requests library is not available in your lambda environment. By default, AWS Lambda has a limited set of libraries available; generally requests is not included.