How to Create Serverless Aurora cluster with AWS CDK
Read more here.
You'll need an Amazon Web Services account and credentials set up on your development machine. If you haven't done it before, here's a useful guide for Configuring the AWS CLI.
- Install NodeJS
- Install AWS CDK framework using
npm i -g aws-cdk
- Clone this repository
git clone https://github.com/bind-almir/cdk-aurora-serverless.git
- Install dependencies
npm i
- Build project
npm run build
- Deploy
account=YOUR_ACCOUNT_NUMBER region=YOUR_REGION cdk deploy
npm run build
compile typescript to jsnpm run watch
watch for changes and compilecdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template