A lightweight implementation of PostGraphile on AWS Lambda using Serverless.
The serverless.yml file is built with a few CLI options so that you can deploy without editing the config!
npm i # install dependencies npx serverless deploy --database-url postgresql://user:password@host/database You can specify graphile plugins to be loaded with a space delimited list with the --append-plugins CLI option. The plugins will be automatically installed on deploy. EG:
npx serverless deploy \ --database-url postgresql://user:password@host/database \ --append-plugins='@graphile/postgis @graphile-contrib/pg-simplify-inflector'