AWS AppSync to Amazon DynamoDB - SingleTable

AWS AppSync → Amazon DynamoDB

Create an AWS AppSync API endpoint with a custom resolver to Amazon DynamoDB using a single table design

The SAM template deploys an AppSync API, a DynamoDB table, a GraphQL schema and a custom resolver that demonstrates a Single Table design on Amazon DynamoDB that is formatted for AppSync.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Launch Stack

Clone repo

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

Deploy

sam deploy --guided


Testing

1. Once the application is deployed, open the AppSync console at https://us-west-2.console.aws.amazon.com/appsync/home ensuring you are in the same region that the API was deployed to.
2. See the repo for additional testing notes.

Cleanup

1. Delete the stack: sam delete --stack-name STACK_NAME.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"

Created by:

Eric Johnson

Eric Johnson

Eric Johnson is a Principal Developer Advocate for Serverless Applications at Amazon Web Services and is based in Northern Colorado. Eric is a fanatic about serverless and enjoys helping developers understand how serverless technologies introduces a major paradigm shift in how they approach building and running applications at massive scale with minimal administration overhead. Prior to this, Eric has worked as a developer, solutions architect and AWS Evangelist for an AWS partner company.

Follow on LinkedIn