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 build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testsnpx cdk deploy
deploy this stack to your default AWS account/regionnpx cdk diff
compare deployed stack with current statenpx cdk synth
emits the synthesized CloudFormation template