CDK AppSync GraphQL API

This CDK stack deploys a real-time GraphQL API built with AWS AppSync, Amazon DynamoDB, and AWS Lambda. It uses AWS Cognito for authentication.

Getting started

To deploy this project, follow these steps.

  1. Clone the project

  2. Change into the directory and install dependencies

cd cdk-graphql-backend

npm install
  1. Run the build
npm run build

or for development ease

npm run watch
  1. Deploy the stack to stage (default is dev)
cdk deploy -c stage=test
cdk deploy -c stage=prod

If you want to destroy the stack

cdk destroy

To compare new changes to the current deployed stack

cdk diff