Skip to content

Commit

Permalink
fixup! Added lambda adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
innermatrix committed Oct 4, 2023
1 parent ed4aa39 commit 2ac43e5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions grafast/website/grafserv/servers/lambda.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Lambda

Grafserv supports the following AWS lambda configurations:

## AWS API Gateway v2

To deploy Grafserv in API Gateway v2:

* Create an Node 18.x lambda following the instructions at https://docs.aws.amazon.com/lambda/latest/dg/lambda-nodejs.html
* Add `grafserv` as a dependency using your node package manager of choice
* Replace your lambda's handler implementation with the code below
* Deploy your lambda as a zip package following the instructions at https://docs.aws.amazon.com/lambda/latest/dg/nodejs-package.html#nodejs-package-create-dependencies

```js
import { grafserv } from "grafserv/lambda/v1";
import preset from "./graphile.config.mjs";
Expand Down

0 comments on commit 2ac43e5

Please sign in to comment.