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