The cdk.json
file tells the CDK Toolkit how to execute your app.
- Install Node Version Manager (NVM) https://github.com/nvm-sh/nvm#installing-and-updating
- Select Node version 18
nvm install 18
- Install packages in this repo. Use
npm
, having issues withyarn
and CDK.
npm install
- Install
aws-cdk
andaws-cdk-local
CLI
npm install -g aws-cdk
npm install -g aws-cdk-local
npm install aws-cdk-lib constructs
- Bootstrap the CDK project for LocalStack
cdklocal bootstrap aws://000000000000/us-east-1
- Deploy CDK project to LocalStack
cdklocal deploy
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