This is a demo for my blog post!
- 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).
- 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.
- Modify the target AWS account and region
Modify the src/main.ts
file. Use your AWS account and desired AWS region.
- Install dependencies
yarn
- Deploy the stack
yarn cdk deploy
-
Manually trigger the Lambda Check the output of the lambda to see if it really connected to the database via the RDS Proxy!
-
Destroy the stack
yarn cdk destroy
PS: This takes a long time (around 20 minutes).