A Simple Serverless GraphQL API for MySQL, Postgres and Aurora
This is an example project using the Serverless framework, Node.js and Amazon RDS.
This project uses 3 RDS databases to illustrate the differences between using each of them:
- MySQL
- PostgreSQL
- MySQL-compatible Amazon Aurora
How to Deploy This Project
Pre-Requisites
To deploy this GraphQL API, you’ll need the following:
- An AWS account.
- AWS CLI installed locally.
- API credentials for your AWS account configured in your AWS CLI locally by running
aws configure
. - Serverless framework installed locally via
npm -g install serverless
.
Steps to Deploy
Once all pre-requisite items are ready, follow these steps to deploy this example GraphQL API:
- Run
npm install
to install all the necessary dependencies. - Run
npm run deploy
to deploy the stack.
Steps to Remove All Resources
After you’ve finished working with this example, remove all resources to make sure you’re not getting billed for unused RDS databases.
Run npm run remove
to remove all resources.