Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/0xSeb/aws_secrets_manager_psql_rotation_lambda

A lambda function to rotate PostgreSQL database user's passwords stored in AWS Secrets Manager.
https://github.com/0xSeb/aws_secrets_manager_psql_rotation_lambda

Last synced: 9 days ago
JSON representation

A lambda function to rotate PostgreSQL database user's passwords stored in AWS Secrets Manager.

Awesome Lists containing this project

README

        

# AWS Secrets Manager PSQL Rotation lambda

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**:

![db connection new](changes.png)