run node js server on lambda code example
Example: aws lambda function setup for node js
// first install serverless
$ npm install -g serverless
// create basic template
$ serverless create --template aws-nodejs --name candidate
// configure aws and genrate client id and client secret
serverless config credentials --provider aws --key <your_access_key_id> --secret <your_access_key_secret>
// deploy
serverless deploy