Web APIs entry point support for AWS Lambdas.
npm install @travetto/web-aws-lambdaInstall: @travetto/web-aws-lambda
``bash
npm install @travetto/web-aws-lambda
yarn add @travetto/web-aws-lambda
`
This module provides an adapter between Web API and AWS Lambda. The event-driven invocation model for Web API aligns cleanly with AWS Lambda's model for event-driven operation.
NOTE: The only caveat to consider, is that while the framework supports streams for responses, AWS Lambda does not. Any streaming result will be read and converted into a Buffer before being sent back.
Terminal: Invoking a Package Build
`bash
$ trv pack:lambda -h
Usage: pack:lambda [options] [args...:string]
Options:
-b, --buildDir
--clean, --no-clean Clean workspace (default: true)
-o, --output
-es, --main-scripts Create entry scripts (default: false)
-f, --main-name
-e, --entry-point
--minify, --no-minify Minify output (default: true)
-sm, --sourcemap Bundle source maps (default: false)
-is, --include-sources Include source with source maps (default: false)
-x, --eject-file
-r, --rollup-configuration
--env-file
--manifest-file
-wr, --include-workspace-resources Include workspace resources (default: false)
-np, --npm-package
-m, --module
-h, --help display help for command
``