Skip to content

Simple Aurora Serverless V2 with Lambda and APIGW deployed on LocalStack

License

Notifications You must be signed in to change notification settings

localstack-samples/aurora-serverless-v2

Repository files navigation

Welcome to your CDK TypeScript project

The cdk.json file tells the CDK Toolkit how to execute your app.

Setup

  1. Install Node Version Manager (NVM) https://github.com/nvm-sh/nvm#installing-and-updating
  2. Select Node version 18
nvm install 18

Build and Deploy

  1. Install packages in this repo. Use npm, having issues with yarn and CDK.
npm install
  1. Install aws-cdk and aws-cdk-local CLI
npm install -g aws-cdk
npm install -g aws-cdk-local
npm install aws-cdk-lib constructs
  1. Bootstrap the CDK project for LocalStack
cdklocal bootstrap aws://000000000000/us-east-1
  1. Deploy CDK project to LocalStack
cdklocal deploy

Useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

About

Simple Aurora Serverless V2 with Lambda and APIGW deployed on LocalStack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •