This is an example project for TypeScript development with CDK integrating local testing with the sam cli
The cdk.json
file tells the CDK Toolkit how to execute your app.
- npm
- python
- docker
- aws cdk cli
- sam cli
-
clone this repo
-
install the project dependencies
npm i
-
check if everything works by typing the following command
cdk synth
-
boostrap the aws environment where the demo is going to be deployed *
cdk bootstrap
-
Deploy the stack
cdk deploy
cdk synth --no-staging > template.yaml
sam local start-api
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