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
# Install the AWS CDK CLI
npm install -g aws-cdk
# Initialize a new CDK project
cdk init app --language=typescript
# Bootstrap the AWS CDK Toolkit stack into an environment
cdk bootstrap aws://ACCOUNT-NUMBER-1/REGION-1
# Deploy the stack
cdk deploy
# Destroy the stack
cdk destroy