srijitm / sample-rds-infra

CDK Project that generates an RDS PostgreSQL DB and executes a Lambda custom resource to initialize it. Uses Secrets Manager to store and rotate secrets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample-RDS-Infra

Note: This is not Production grade and simply meant as a demo

Description

This project provisions a RDS PostgreSQL DB and executes a SQL script to deploy the DB schema. The DB credentials are stored in AWS Secrets Manager and are rotated every 30 days.

Instructions

Install CDK

npm install -g aws-cdk

Configure

Update config/config.ts Update lib/rds-infra-stack.ts Update schema.sql in lambda/rds-helper

Install Dependencies

npm install npm run build

Deploy

cdk deploy --require-approval never

About

CDK Project that generates an RDS PostgreSQL DB and executes a Lambda custom resource to initialize it. Uses Secrets Manager to store and rotate secrets.


Languages

Language:Python 53.3%Language:TypeScript 39.9%Language:JavaScript 6.7%