This repository is part of my article on AWS CDK v2: Enhanced Context Management. It demonstrates how to use AWS CDK Context in your CDK project. And offers a simple approach to manage your CDK project configuration at scale.
Each branch represents a different stage in the article. The branch name is the stage name. The branch main is the final stage.
branches:
- 1—Plain-and-simple
- 2—Easier-to-maintain
- 3-De-coupled
- 4-Use-YAML
This is a blank project for CDK development with TypeScript.
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 testsnpx cdk deploydeploy this stack to your default AWS account/regionnpx cdk diffcompare deployed stack with current statenpx cdk synthemits the synthesized CloudFormation template
