Amazon API Gateway to AWS AppSync to Amazon DynamoDB

Amazon API Gateway → AWS AppSync → Amazon DynamoDB

Create an Amazon API Gateway HTTP API as a proxy to AWS AppSync GraphQL API with Amazon DynamoDB as the API data source

This patterns creates Amazon API Gateway HTTP API which is used as a proxy to AWS AppSync GraphQL API with Amazon DynamoDB as the data source.
To demonstrate the pattern, we have built a simple Restaurant API where users can add, delete, update, get and list restaurants. All requests to the API Gateway endpoint is sent to the AppSync API endpoint where the request is fulfilled.
This implementation will support all GraphQL queries and mutations defined in the AppSync API GraphQL schema however will not support subscriptions

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/apigw-appsync-dynamodb-sam

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Ozioma Uzoegwu

Ozioma Uzoegwu

I am a Principal Solutions Architect working at AWS

Follow on LinkedIn