Skip to content

Latest commit

 

History

History
39 lines (35 loc) · 1.04 KB

README.md

File metadata and controls

39 lines (35 loc) · 1.04 KB

Welcome to your CDK TypeScript project

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

Setup

  1. Install Node Version Manager (NVM) https://github.com/nvm-sh/nvm#installing-and-updating
  2. Select Node version 18
nvm install 18

Build and Deploy

  1. Install packages in this repo. Use npm, having issues with yarn and CDK.
npm install
  1. Install aws-cdk and aws-cdk-local CLI
npm install -g aws-cdk
npm install -g aws-cdk-local
npm install aws-cdk-lib constructs
  1. Bootstrap the CDK project for LocalStack
cdklocal bootstrap aws://000000000000/us-east-1
  1. Deploy CDK project to LocalStack
cdklocal deploy

Useful commands

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