prisma-lambda
prisma-lambda copied to clipboard
Integrating Prisma with `aws-lambda-nodejs` to run Prisma on Lambda
CDK + Prisma
This is integrating Prisma with aws-lambda-nodejs to run Prisma on Lambda. A REST API is also exposed that uses API Gateway with a Lambda Proxy integration.
The cdk.json file tells the CDK Toolkit how to execute your app.
Prerequisites
-
Replace
regionincdk.context.jsonto the one of your choice (default isus-east-2). -
Rename
.example.envto.envand replace the placeholder values with the actual values from Secrets Manager after the stack has been deployed.
Useful commands
yarn buildcompile typescript to jsyarn watchwatch for changes and compileyarn testperform the jest unit testsyarn cdk deploydeploy this stack to your default AWS account/regionyarn cdk diffcompare deployed stack with current stateyarn cdk synthemits the synthesized CloudFormation template