Welcome to your CDK TypeScript project

December 4, 2023 ยท View on GitHub

This is a blank project for CDK development with TypeScript.

The cdk.json file tells the CDK Toolkit how to execute your app.

Process

source .env # create from example.env
npm install
npx cdk bootstrap "aws://$CDK_DEFAULT_ACCOUNT/$CDK_DEFAULT_REGION"
npm run start
open "https://console.aws.amazon.com/omics/home?region=$CDK_DEFAULT_REGION#/runs"

Outputs

open "https://console.aws.amazon.com/cloudformation/home?region=$CDK_DEFAULT_REGION#/stacks"
# lambdas
open "https://console.aws.amazon.com/lambda/home?region=$CDK_DEFAULT_REGION#/functions"

Useful commands

  • npm test perform the jest unit tests
  • npm run build compile typescript to js
  • npm run watch watch for changes and compile/test
  • npx cdk diff compare deployed stack with current state
  • npx cdk synth emits the synthesized CloudFormation template