This is a simple example that shows how to deploy an existing Express application, with minimal changes, to AWS Lambda.
- run
npm install
to grab the dependencies - run
npm run generate-proxy
to create a simple proxy API for the express app - run
npm run deploy
to send everything up to AWS Lambda
The third step will print out a URL you can use to access the express app.
- Change
app.js
- (Optionally) use
npm install <PACKAGE NAME> -S
to install additional dependencies (always save them topackage.json
using-S
) - Run
npm run update
to send the new version up to AWS. No need to generate the proxy again
See the Running Express Apps in AWS Lambda tutorial.