MongoDB Atlas
- 2 Minutes to read
- DarkLight
MongoDB Atlas
- 2 Minutes to read
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
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
- In MongoDB Atlas, click on Create in the Database Deployments section to create a cluster.
- Select your cloud provider, region, and configure cluster according to your needs.
- Click on Create Cluster to finish the process.
Configure Network Access
- In the Security section, click on Network Access.
- Add each Dataddo IP address to allow incoming connection.
Create Database User
- In the Security section, click on Database Access and on Add New Database User.
- Enter Username and Password.
- 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
- In the Authorizers tab, click on Authorize New Service and select MongoDB Atlas.
- You will be asked to fill-in the following fields.
- 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. - Database: The name of the database you are connecting to.
- DSN Connection String: This can be found in the detail of your MongoDB cluster as connection string. Make sure to replace the
- 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
- Check your connection string
- Make sure the hostname is that is publicly accessible via internet is present.
Create a New Mongo DB Atlas Destination
- On the Destinations page, click on the Create Destination button and select the destination from the list.
- Select your authorizer from the drop-down menu.
- 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
- Navigate to Flows and click on Create Flow.
- Click on Connect Your Data to add your source(s).
- Click on Connect Your Data Destination to add the destination.
- Choose the write mode and fill in the other required information.
- Check the Data Preview to see if your configuration is correct.
- Name your flow and click on Create Flow to finish the setup.
Was this article helpful?