Prototype CDK Typescript project demonstrating the use of CDK Aspect to attach serverless functions to VPC
This project creates a CDK stack, consisting of one lambda function, which queries a list of S3 buckets from the S3 api.
This function's network interface is attached to a VPC by the aspect lib/vpc-attach-aspect.ts
To install dependencies, run npm i
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testsnpm cdk deploy
deploy this stack to your default AWS account/regionnpm cdk diff
compare deployed stack with current statenpm cdk synth
emits the synthesized CloudFormation template