Jones Zachariah Noel N
zachjonesnoel

Follow

zachjonesnoel

Follow
AWS SAM app with MongoDB Atlas Data APIs

AWS SAM app with MongoDB Atlas Data APIs

Jones Zachariah Noel N's photo
Jones Zachariah Noel N
ยทJan 9, 2022ยท

2 min read

Play this article

This is the implementation of a typical web app backend where the MongoDB Atlas is leveraged to store data.

Overview of My Submission

The SAM app uses MongoDB Atlas for database choice which contains two collections - shield_agents and shield_locations. This stores the S.H.I.E.L.D info such as the database of all agents and non classified locations. The operation of INSERT and GET is integrated with MongoDB Atlas Data APIs where the API credentials are created and passed into AWS Lambda fns as environment variables with CloudFormation Parameters. The APIs from SAM app are exposed with AWS API Gateway. Also have the Search enabled with indexes. MongoDB dashboard

Submission Category:

Choose Your Own Adventure, the first time I'm using MongoDB and Data APIs so went a step to adapt it into my usual tech-stack (AWS Serverless) with a AWS SAM application.

{% github github.com/zachjonesnoel/shield-database %}

Screenshots

Creating an agent with insertOne API Create agent Getting one of the created agent with findOne API Get created agent Creating a location with insertOne API Create location Getting one of the created location with findOne API Get created location MongoDB Atlas Search helps in creating an index for a collection and using the index to query and check if the filter pattern matches any record. The matching records also return a match score. Atlas Search MongoDB Atlas Charts can help you visualize data. No of locations - MongoDB Atlas Charts - locations Agents with security clearance level- MongoDB Atlas Charts - security level

Additional Resources / Info

ย 
Share this