Simple Lambda example with caching using aws-serverless-express to expose the postgraphile middleware
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore Zip it up Mar 12, 2018
README.md README Apr 5, 2018
index.js Fixes Mar 12, 2018
makeCache.js Basic build Mar 12, 2018
package.json Simplify Apr 5, 2018
postgraphileOptions.js Basic build Mar 12, 2018
yarn.lock Simplify Apr 5, 2018

README.md

Bundle with:

DATABASE_SCHEMAS="app_public" DATABASE_URL="postgres://localhost/lambda_example" npm run bundle

Then upload lambda.zip (~3.9MB) to lambda and set the handler to index.handler

Make sure you set the DATABASE_SCHEMAS and DATABASE_URL envvars on Lambda too!