SQLite on Lambda with Python3.6? (read-only)
We'd like to use a small SQLite3 database as a read-only data source in our Lambda project. We tried using Python 3.6 but the Lambda Linux doesn't have the native drivers (known problem):
Unable to import module 'my_program': No module named '_sqlite3'
I see some people on stackoverflow messing with SO files and such, is that viable?
This project is a webapp, so Flask (or a stripped down Django) so we'd prefer not to have to include Anaconda/SciPy stuff.
7 comments · 100% upvoted · other discussions
You could try writing an AWS Lambda function that runs
pip wheel sqliteand uploads it. Then that wheel will include the_sqlite3module which you can include in your deployment.zip.