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 CDK project 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


Clone repo

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

Deploy

cdk deploy


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

cdk destroy

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