AWS AppSync to MongoDB

AWS AppSync → MongoDB Atlas API

Connect directly to MongoDB Atlas cluster using AWS AppSync using HTTP resolvers.

This project demonstrates how to connect directly to a MongoDB Atlas cluster using AWS Appsync.
Connecting directly to MongoDB requires the use of their Data API and AppSync's HTTP resolver.
In doing so, there is no need for a proxying Lambda function.

< 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-mongodb

Deploy

cdk deploy --all


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy --all.

Created by:

Michael Liendo

Michael Liendo

Senior Developer Advocate | AWS AppSync 🦦

Follow on LinkedIn