This is a demo project for TypeScript development with CDK.
Entrypoint is in bin/.
It has 3 stacks in lib/ :
- Network stack : Creates the base networking infrastructure.
- Apple Microservice : Creates simple EC2 into the VPC (created by network stack).
- Blueberry Microservice : Create EKS cluster on with EC2 and ELB. This is then used by the AWS-CDK8s-demo.
aws-cdk-demo-stack : It is a blank template.
You can find the PPT of my session at https://www.slideshare.net/rohinigaonkar/infrastructure-as-code-with-aws-cloud-development-kit-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