1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
You cannot use "request" in Lambda just by running "pip install request" on your local PC.
You need to create a Lambda layer or upload a "request" module along with your Lambda function code.
https://docs.aws.amazon.com/lambda/latest/dg/python-layers.html
Relevant content
- AWS OFFICIALUpdated 4 years ago

By the way, the "request" module has layers created by volunteer users, so you can use it without creating layers yourself. https://github.com/keithrozario/Klayers#list-of-arns