Prerequisites:
https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html#getting_started_prerequisites
Steps to follow:
Navigate to bin/hello-cdk.ts and set your AWS Account number and region
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