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
- Start with
nvm use
(https://github.com/nvm-sh/nvm) -> Node Verision managernvm install
(Install required Node Version)npm install
(Install modules)
- Create
.env
file with the correct values as in.env.example
file - BootStrap the CDK in target region if doing it first time.
npm run cdk -- --profile ${AWS_PROFILE} bootstrap aws://${AWS_ACCOUNT_ID}/${AWS_REGION}
- Run build layers script to generate NodeJS layers
./build_layers.sh
- Run build to generate compiled lambda code
npm run build-lambda
- Deploy Lambda
npm run cdk -- --profile ${AWS_PROFILE} deploy AwsS3AzureBlobSyncStack
- Destroy Lambda
-
npm run cdk -- --profile ${AWS_PROFILE} destroy AwsS3AzureBlobSyncStack
-