Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 865 Bytes

generate-serverless-express-proxy.md

File metadata and controls

20 lines (15 loc) · 865 Bytes

generate-serverless-express-proxy

Create a lambda proxy API wrapper for an express app using aws-serverless-express

Usage

claudia generate-serverless-express-proxy {OPTIONS}

Options

  • --express-module: The main module that exports your express application
    • For example: if the application is defined and exported from express-server.js, this would be express-server
  • --source: (optional) Directory with project files
    • Defaults to: current directory
  • --proxy-module-name: (optional) the name of the new proxy module/file that will be created. To create a file called web-lambda.js, this would be web-lambda
    • Defaults to: lambda
  • --aws-serverless-express-module: (optional) the NPM module name/path of the serverless-express module you want to install
    • Defaults to: aws-serverless-express