Also, is there a way to run Prisma in a serverless...
# orm-help
s
Also, is there a way to run Prisma in a serverless container, like Lambda?
d
You can run your prisma server in lambda, but the prisma database layer needs docker.
You can deploy the prisma database layer to AWS Fargate which I think of as docker lambda https://blog.graph.cool/how-to-deploy-a-prisma-cluster-to-aws-fargate-using-docker-cloudformation-293aa8727b89
👍 2
m
@siyfion -- I use a very similar setup, with the exception that I use AWS Fargate with an Aurora db. So, happy to chat about what that looks like
👍 1
s
Ah, perfect @medelman. So basically, you’ve got an Aurora DB, with a Fargate cluster running the Prisma service and then an “application” GraphQL server running in Lambda? That was my thoughts for a setup that seemed scalable, and resilient?
Can the Fargate cluster auto scale, too?
Oh and, how did you set it up? As an “existing” DB? Then just pretty much ignore the auto created schema, and just modify it from there?
n
m
Ah sorry, @siyfion, this totally got away from me yesterday!
n
You can run
prisma init
and choose "existing database" to provide the connection information to your Prisma config in` docker-compose.yml`