https://github.com/ryands17/prisma-lambda
Integrating Prisma with `aws-lambda-nodejs` to run Prisma on Lambda
https://github.com/ryands17/prisma-lambda
cdk lambda prisma2 typescript
Last synced: 6 months ago
JSON representation
Integrating Prisma with `aws-lambda-nodejs` to run Prisma on Lambda
- Host: GitHub
- URL: https://github.com/ryands17/prisma-lambda
- Owner: ryands17
- Created: 2021-03-02T19:53:19.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T08:28:42.000Z (over 1 year ago)
- Last Synced: 2024-05-28T21:10:12.733Z (over 1 year ago)
- Topics: cdk, lambda, prisma2, typescript
- Language: JavaScript
- Homepage:
- Size: 2.53 MB
- Stars: 21
- Watchers: 3
- Forks: 5
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 `region` in `cdk.context.json` to the one of your choice (default is `us-east-2`).
- Rename `.example.env` to `.env` and replace the placeholder values with the actual values from Secrets Manager after the stack has been deployed.
## Useful commands
- `yarn build` compile typescript to js
- `yarn watch` watch for changes and compile
- `yarn test` perform the jest unit tests
- `yarn cdk deploy` deploy this stack to your default AWS account/region
- `yarn cdk diff` compare deployed stack with current state
- `yarn cdk synth` emits the synthesized CloudFormation template