Brooklyn Active Release Therapy in NYC

There are numerous signs that you may benefit off of active release therapy. Some of the issues and symptoms that most people commonly treat using ART include: carpal tunnel syndrome, tension…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Spring Boot with Amazon DocumentDB

AWS has a service called DocumentDB. This is a managed NoSQL database with MongoDB compatibility. Only with a couple of clicks, one can easily set up a cluster. This tutorial is about how to connect the SpringBoot application running on the local machine with DocumentDB.

As I previously mentioned it is very easy and fast to create a DocumentDB cluster. But on the other hand, connecting to it outside the AWS cloud is a tedious task. All the clusters are deployed within Amazon VPC and accessible by other Amazon services, but when we need to access it outside of the Amazon private network (VPC) we have to make additional steps.

Imagine we have a Spring Boot application, that handles information about customers and as a persistent storage it uses AWS DocumentDB service. This application exposes REST API with 3 endpoints, one for customer creation and 2 for fetching all customers or a single one by id.

When developing an application we need to test it, for this, we have to connect the local instance of our application to the DocumentDB running on the cloud.

First, we have to create two Security groups, one for the DocumentDB cluster and another for the Bastion EC2 instance. In the AWS console go to EC2->Network & Security->Security Group and press Create security group

Fill up the name of a group, description choose a default VPC. The creation of the VPC is out of the scope of this tutorial. To make it simple I will use a default VPC, but in a real-life project, you may consider a separate…

Add a comment

Related posts:

Stop thinking about the future

First of all it takes effort… a lot of effort. Not thinking about the future means being in the present which means You are at peace. Be in the NOW. There are many ways to achieve that but let me…

I was Married

In my dream it was marriage it just couldn’t be more She — the only one in the world I couldn’t adore Thoughts of anything more made it silly She would scream for me at the top of her lungs BILLY…

This Illinois Small Town Had Starbucks Before It Grew Globally

The barista writes your name on the side of the cup. Then, when your drink is ready, they call your name, thus breaking the barrier between customer and employee. According to an Illinois Reporter…