The trick to use requests
from botocore.vendored no longer works with Python 3.8 on AWS Lambda which I assume includes the latest botocore-1.13.
This version no longer embeds requests
. Importing it works but the package is actually empty.
[ERROR] AttributeError: module 'botocore.vendored.requests' has no attribute 'post'
Is there a way to import requests
on native lambda? It's a basic and it would be a pain to go through the process of packaging the code for very simple Lambda.
Alternatively, anyone has another trick to call API-Gateway without requests
?
Oh wow, I guess this is a 'breaking-change' on AWS Lambda that we rarely see.
AWS have warned about this before, there's a few options:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With