I made this repo to learn how to use AWS CDK
This was actually my first question. The primary answer is CDK doesn't live in a vacuum.
I use a modified functional typescript linter with strict code complexity. Copy and paste the eslint configs from here into your project and use the following shortcut:
npm i -D eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-functional
The cdk.json
file tells the CDK Toolkit how to execute your app.
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template
- I tried renaming a database, and it didn't look like it transferred data