Skip to content

felipelaptrin/rds-iam-auth

Repository files navigation

RDS IAM Auth

This is a demo for my blog post!

Architecture

Architecture Diagram

How to run this project?

  1. Install dev dependencies
devbox shell

Make sure you have Devbox installed, or, make sure you have the installed dependencies for this project (please check devbox.json file).

  1. Export AWS credentials Make sure your terminal has valid AWS credentials.

Since this project uses CDK, you should also make sure you AWS region in the desired AWS Account is bootstrapped.

  1. Modify the target AWS account and region

Modify the src/main.ts file. Use your AWS account and desired AWS region.

  1. Install dependencies
yarn
  1. Deploy the stack
yarn cdk deploy
  1. Manually trigger the Lambda Check the output of the lambda to see if it really connected to the database via the RDS Proxy!

  2. Destroy the stack

yarn cdk destroy

PS: This takes a long time (around 20 minutes).

About

A demo for my blog post about how to use IAM Auth to connect to RDS Database and also use RDS Proxy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published