MongoDB Atlas
  • 2 Minutes to read
  • Dark
    Light

MongoDB Atlas

  • Dark
    Light

Article Summary

MongoDB Atlas is a fully managed cloud database service. It allows users to deploy, manage, and scale MongoDB databases in the cloud without the complexities of traditional database management, providing features such as automated backups, monitoring, security, and seamless integration with popular cloud platforms.

Prerequisites

  • You already have a MongoDB instance running with a public IP or hostname.
  • You have configured a MongoDB user with write permissions.
  • You have configured your network firewall to allow incoming connection from Dataddo IPs.

Authorize Connection to MongoDB Atlas

In MongoDB Atlas

Create MongoDB Cluster

  1. In MongoDB Atlas, click on Create in the Database Deployments section to create a cluster.
  2. Select your cloud provider, region, and configure cluster according to your needs.
  3. Click on Create Cluster to finish the process.

Configure Network Access

  1. In the Security section, click on Network Access.
  2. Add each Dataddo IP address to allow incoming connection.

Create Database User

  1. In the Security section, click on Database Access and on Add New Database User.
  2. Enter Username and Password.
  3. In the Database User Privileges section, select the Read and Write to any Database role. This provides the user with the ability to read from, write to, and create collections in any database.

In Dataddo

  1. In the Authorizers tab, click on Authorize New Service and select MongoDB Atlas.
  2. You will be asked to fill-in the following fields.
    1. DSN Connection String: This can be found in the detail of your MongoDB cluster as connection string. Make sure to replace the <password> value with the one you created in the MongoDB user creation step.
    2. Database: The name of the database you are connecting to.
  3. Click on Save.

Troubleshooting

DNS Error

If you experience a DNS error, it means that the hostname of your server is not accesible through the internet, please

  1. Check your connection string
  2. Make sure the hostname is that is publicly accessible via internet is present.

Create a New Mongo DB Atlas Destination

  1. On the Destinations page, click on the Create Destination button and select the destination from the list.
  2. Select your authorizer from the drop-down menu.
  3. Name your destination and click on Save.
Need to authorize another connection?

Click on Add new Account in drop-down menu during authorizer selection and follow the on-screen prompts. You can also go to the Authorizers tab and click on Add New Service.

Create a Flow to MongoDB Atlas

  1. Navigate to Flows and click on Create Flow.
  2. Click on Connect Your Data to add your source(s).
  3. Click on Connect Your Data Destination to add the destination.
  4. Choose the write mode and fill in the other required information.
  5. Check the Data Preview to see if your configuration is correct.
  6. Name your flow and click on Create Flow to finish the setup.



Was this article helpful?

What's Next