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.
-
Clone the project
-
Change into the directory and install dependencies
cd cdk-graphql-backend
npm install
- Run the build
npm run build
or for development ease
npm run watch
- 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