This is a bare-bones, bare minimum implementation of an AWS Lambda script using Express.js.
I previously tried the official AWS Labs example and was unable to get it to work, so I made this.
Note: ensure that git and npm/node are installed.
git clone http://github.com/jpdillingham/aws-lambda-express-bare-bonescd aws-lambda-express-bare-bonesnpm install- Zip the contents of the
aws-lambda-express-bare-bonesdirectory and upload to a new lambda
You'll want to set up an API Gateway for this as well, but that's beyond the current scope.
git clone http://github.com/jpdillingham/aws-lambda-express-bare-bonescd aws-lambda-express-bare-bonesnpm installnode index.js
The default port is 3000.