Skip to content

DanielDaCosta/psycopg2-aws-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Psycopg2 C library for Python for AWS Lambda

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages