This CDK stack deploys a sample lambda with API Gateway with Lambda proxy integration. This means that any request to any URL path will be proxied directly to our Lambda function and the response from the function will be returned back to the user.
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 testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template