cdk init --language typescript
npm i @aws-sdk/client-eventbridge
npm i @aws-sdk/types
npm i @aws-cdk/aws-lambda @aws-cdk/aws-dynamodb @aws-cdk/aws-apigateway
npm i [email protected] ts-node jest ts-jest @types/node @types/jest --save-dev
npm i @aws-sdk/client-dynamodb
cdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation templatecdk bootstrap
(one Time) is the process of provisioning resources fot the AWS CDK before you can deploy AWS CDK apps into AWS Enviorment
npm i esbuild
npm run build
Creates a build directory with a production build of your app
npm init -y
Initializing typescript project
aws dynamodb list-tables --endpoint-url http://localhost:8000
npx ts-jest config:init
--> This create a basic Jest configuration file which will inform Jest about ho to handle .ts files correctlynpx jest
: To test all files in test foldernpx jest .\test\email-sender.test.ts -t "Send Email"
: to test an especific filenpx jest --coverage
: Statsnpm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit tests
npm install -g aws-cdk
install latest versionnpm install -g [email protected]
install specific version
import * as s3 from 'aws-cdk-lib/aws-s3'
S3Bucketimport * as dynamodb from 'aws-cdk-lib/aws-dynamodb'
DynamoDBimport * as lambda from 'aws-cdk-lib/aws-lambda'
lambda