https://github.com/danieldacosta/psycopg2-aws-lambda
Psycopg2 C library for Python for AWS Lambda
https://github.com/danieldacosta/psycopg2-aws-lambda
Last synced: about 2 months ago
JSON representation
Psycopg2 C library for Python for AWS Lambda
- Host: GitHub
- URL: https://github.com/danieldacosta/psycopg2-aws-lambda
- Owner: DanielDaCosta
- License: mit
- Created: 2020-05-25T23:48:01.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-31T02:07:56.000Z (about 6 years ago)
- Last Synced: 2025-01-11T01:10:37.503Z (over 1 year ago)
- Language: Python
- Size: 481 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# psycopg2-aws-lambda
This is a custom compiled psycopg2 C library for Python. This covers the problem of:
AWS Lambda missing the required PostgreSQL libraries in the AMI image. This usualy happens
with the following **error message**:
```No module named 'psycopg2._psycopg': ModuleNotFoundError```
**Details**
- This package was compiled using AWS EC-2 instance AMI: Amazon Linux AMI 2018.03.0 (HVM), SSD Volume Type.
- Python 3.7
- PostgreSQL: 11.6
- psycopg2: 2.8.5
**Usage**
You will just have to copy the psycopg2 directory and paste it into your AWS Lambda zip package.
## References & Acknowledgments
Check @jkheler GitHub for more details: https://github.com/jkehler/awslambda-psycopg2