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 buildcompile typescript to jsnpm run watchwatch for changes and compilecdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation template