This repo exists as I needed a password rotation lambda for passwords stored inside AWS Secrets Manager.
The issue with the default one from AWS is that it's using old libraries to connect to the Postgres Database.
This repo uses Python 3.8 and a statically compiled version of psycopg2 as there was an issue with a missing libpq library if installed through python pip.
Here is the new connection using psycopg2: