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.
-
Replace
region
incdk.context.json
to the one of your choice (default isus-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.
yarn build
compile typescript to jsyarn watch
watch for changes and compileyarn test
perform the jest unit testsyarn cdk deploy
deploy this stack to your default AWS account/regionyarn cdk diff
compare deployed stack with current stateyarn cdk synth
emits the synthesized CloudFormation template