AWS | GraphQL And Rds

This is an example project that uses 3 RDS databases to illustrate the differences between using each of them

Clone This Example

Step #1 - npm install serverless -g
Step #2 - serverless install -u https://github.com/serverless/examples/tree/master/aws-node-graphql-and-rds -n  aws-node-graphql-and-rds

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:

  1. Run npm install to install all the necessary dependencies.
  2. 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.

view on Github

Latest commit b2f54ec on Sep 24, 2017

New to serverless?

To get started, pop open your terminal & run:

npm install serverless -g