Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dschep/sqlite-lambda-layer
A project providing a Lambda Layer that provides SQLite support in Python3.6 Lambdas
https://github.com/dschep/sqlite-lambda-layer
Last synced: 26 days ago
JSON representation
A project providing a Lambda Layer that provides SQLite support in Python3.6 Lambdas
- Host: GitHub
- URL: https://github.com/dschep/sqlite-lambda-layer
- Owner: dschep
- Created: 2018-11-16T19:21:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-30T23:23:50.000Z (about 6 years ago)
- Last Synced: 2024-10-19T06:03:12.977Z (about 2 months ago)
- Language: Dockerfile
- Homepage:
- Size: 9.77 KB
- Stars: 25
- Watchers: 7
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-layers - `dschep/sqlite-lambda-layer`
README
# SQLite Python Lambda Layer
Like many Python programmers, you've probably been disappointed when you tried to import `sqlite3`
in a Python3.6 AWS Lambda only to find out it doesn't work. This project remedies that by providing
a [Lambda Layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) that contains the necessary compiled library
(`_sqlite3.so`).## How to use
First you must clone the repo, build the file, and publish it to AWS:
```shell
git clone [email protected]:dschep/sqlite-lambda-layer
cd sqlite-lambda-layer
./build
sls deploy
```
Then see [the docs](https://serverless.com/framework/docs/providers/aws/guide/functions/#layers)
and configure your lambda to use the layer you just published.