Deploy
👉 1. Prepare your local machine
Make sure to install the below on your local machine:
Then configure your local environment with the AWS Account of your choice.
👉 2. Setup a Database
Setup the database of your choice. It doesn't have to be hosted on Amazon AWS, you can use any database supported by Prisma. If you are not sure what to use, we recommend using PlanetScale and read the following integration guide.
👉 3. Deploy on AWS
Run the below CDK CLI command:
Where
DATABASE_URL
is your own database connection url.
bash
DATABASE_URL=mysql://xxx yarn deploy
🚀 Done! Your GraphQL API is now ready to use.