AWS CDK is Amazon's IaC (Infrastructure as Code) offering and is an alternative to HashiCorp's Terraform. CDK allows developers to use their programming language of choice rather than a DSL in Terraform (HCL).
This sample is written in TypeScript and the main application level additions are in lib/awscdk-stack.ts
This is a blank project for TypeScript development with CDK.
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