This project is example of CDK × Prisma.
If you modify prisma.schema
and prisma generate
,
this project will auto detect and execute migrate every schema changes.
You can open in Visual Studio Code and use Remote Contaier extension, then you get develop container and mysql container.
yarn install
yarn prisma migrate dev --name first
yarn cdk deploy
Please edit prisma/schema.prisma
.
yarn prisma migrate dev --name second
yarn cdk deploy
You will get migrated tables!!
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template