---
title: "MongoDB Atlas"
slug: "mongodb-atlas"
description: "Get your data from any source, incl. data warehouses, to MongoDB easily with Dataddo! Create secure and reliable data flows or replicate databases in 3 steps."
updated: 2023-10-31T09:51:51Z
published: 2023-10-31T09:51:51Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dataddo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MongoDB Atlas

**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](/docs/mongodb-atlas#create-user) with write permissions.
- You have configured your network firewall to allow incoming connection from [Dataddo IPs](/docs/network-acl).

## 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](/docs/network-acl) 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**](https://app.dataddo.com/service/new) 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 `&lt;password&gt;` value with the one you created in the [MongoDB user creation step](/docs/mongodb-atlas#create-user).
  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**](https://app.dataddo.com/destinations) 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**](https://app.dataddo.com/service/new).

## Create a Flow to MongoDB Atlas

1. Navigate to **Flows** and click on [**Create Flow**](https://app.dataddo.com/flow/new).
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](https://docs.dataddo.com/docs/data-storages#write-modes) 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.

---

## Related Articles

- [Data Backfilling to Storages](https://docs.dataddo.com/docs/data-backfilling-to-storages)
- [Write Modes](https://docs.dataddo.com/docs/data-storages#write-modes)
- [Implementation of Batch Ingestion to Data Warehouses](https://docs.dataddo.com/docs/ingestion-to-data-warehouses)
- [Network Access Control List (ACL) Configuration](https://docs.dataddo.com/docs/network-acl)
- [SSH Tunnelling](https://docs.dataddo.com/docs/ssh-tunnelling)
- [Data Transformations](https://docs.dataddo.com/docs/data-transformations)
- [Data Quality Firewall](https://docs.dataddo.com/docs/data-quality-firewall)
