Example serverless.yml with prisma

Anyone have a sample serverless.yml (or sample repo) that works with prisma (using the node advanced or similar template)?

I have tried starting from this:

service: yoga-example

plugins:

  • serverless-offline

provider:
name: aws
runtime: nodejs6.10

functions:
graphql:
handler: handler.server
events:
- http:
path: /
method: post
cors: true
playground:
handler: handler.playground
events:

but was unable to get it to work correctly i.e. not sure how to modify the entry point when using prisma

Take a look at this repo: https://github.com/jgeschwendt/serverless-prisma

(:wave: from Prisma!)

Prisma now has a nice deployment guide for deploying to AWS Lambda which uses Serverless Framework: Deploying to AWS Lambda | Prisma Docs

If you like it more technical, you can also look at the end to end tests that run for each Prisma version that ensures nothing breaks with Prisma and Serverless: e2e-tests/platforms/serverless-lambda at dev · prisma/e2e-tests · GitHub