MongoDB Atlas Connection
  • 1 Minute to read
  • Dark
    Light
  • PDF

MongoDB Atlas Connection

  • Dark
    Light
  • PDF

Article summary

Create MongoDB Atlas Connection

 

Step 1 - Whitelist Rivery's IP's In Your Mongo Instance

1.In your MongoDB Atlas account - Go to Network Access and Click on Add IP Adresses
atlas_9.png

2.Whitelist the following IP's in your Mongo Instance -

atlas_11.png

After Whitelisting the IP's, the outcome result will be the following -
atlas_10.png

Connect to Mongo Atlas using Private Endpoint (Optional)

Utilizing Private Endpoint for connecting to Mongo Atlas is exclusively accessible to users on the Enterprise plan.

  1. Under Database Network, choose Private Endpoint and click on Add Private Endpoint:
    PL1.png

  2. On Cloud Provider - Choose AWS and click Next
    PL2.png

  3. Choose Region.
    PL3.png


Rivery supports PrivateLink in the next regions:

On console.rivery.io:

  • us-east-1
  • us-east-2
  • us-west-2
    On eu-west-1.console.rivery.io
  • eu-west-1
  • eu-central-1

  1. Wait for a while until the endpoint will be available, and a green v is shown up.
    After that, copy the command aside, and get the --service-name value:
    PL_4.png

  2. Provide the service-name to your Rivery Account Manager or to the Support team. In this step, Rivery internally will make a handshake with your Mongo Atlas Private Endpoint, and should provide you a VPC-Endpoint-ID, with the next format: vpce-XXXXXXXXXXXXXXX

  3. Paste the VPC Endpoint ID in the right place and click on Create:
    image.png

Step 2 - Retrieve A Connection String

  1. In your MongoDB Atlas account - Go to Databases, choose your database and Click on Connect

atlas_1.png

  1. If Private Endpoint created on Step 1, choose Private Endpoint as connection method, and also choose the Private Endpoint you've created on Step 1:
    image.png

  2. Then, select Connect your application
    atlas_3.png

  3. Lastly, copy the URL shown in the screen, and paste aside.
    atlas_4.png

And Change the <username> and <password> to {username} and {password} and change the MyFirstDatabase to the database name you want to connect to:
atlas_3.png

Step 3 - Setting-Up The Connection At The Rivery Console

  1. Provide a Name for your connection.
  2. Configure the Host, Port (default: 27017), and Database.

Please Note: The database name must be in lowercase.

  1. Enter your Username and Password.
  2. Specify your URI.
  3. Click Test Connection to verify your credentials.
  4. Save your connection by clicking Save.

image.png


Was this article helpful?