MongoDB Cluster
This is step three of a guide, this guide assumes you have already completed step one & two.
Last updated
Was this helpful?
This is step three of a guide, this guide assumes you have already completed step one & two.
Last updated
Was this helpful?
Log in to your MongoDB Atlas account at .
Click on the “Create” button.
Choose the shared cluster type (Or, you can select a paid plan).
Choose any cloud provider and region.
Click on “Create cluster.”
MongoDB will automatically provision the cluster within a few minutes, but we still have a bit more configuration to do before its complete. On the sidebar, navigate to the Network Access tab under the security section and click the add IP address button. Here you can either enter the IP address you approved for the license key earlier (For extra security) or, to ensure everything works perfectly anywhere, the IP 0.0.0.0/0 (That means everywhere). Next, its time to create a database user to access the data. Navigate up one from the Network Access tab to Database Access, and click on the add new database user button. Stick with the default password authentication and enter a username such as admin with a securely generated password (Make sure to keep it safe!), under the Database user privileges tab add the built-in role Atlas admin. If done correctly, it should look like the image below.
Head back to the database tab and wait for your database to finish provisioning (if it hasn't already), once done, click the connect button and select the Compass option. You can download the MongoDB compass application on your computer to allow you to access your data externally from the bot, if you're not into that type of stuff, just copy the connection string. It should look something like this:
mongodb+srv://admin:<password>@demo.prawdnaw.mongodb.net/
Make sure to fill in the password field and remove the "<>" surrounding it. Then, head back to your config file and paste the modified connection string inside the mongoURI quotes.
That's it, your done with configuration. A correctly configured file should look something like this.
Now, you can take a look at deploying your bot and getting it online!