The Using AWS Lambda with Amazon S3 tutorial done with AWS CDK.
Uses the NodejsFunction
to bundle the Lambda code:
aws-sdk
is not included in the bundlesharp
, which uses native dependencies, is installed in thenode_modules
folder
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