Locate connection information
MongoDB CLI
- Connect to your MongoDB node using the MongoDB CLI as an admin.
- Execute the following query:
MongoDB Script
- Make a note of the host identifiers.
MongoDB Atlas
- Log in to your Atlas dashboard, click into the Database tab and click Connect.
- Under Connect your application, click into the Drivers option.
- In the following screen, make a note of the host identifier within your connection string. It can be found within the string that starts with
mongodb+srvand the identifier is the URI after the@. E.g.,some-cluster.some-characters.mongodb.net.
Allow database access
MondoDB CLI
- Connect to your MongoDB node using the MongoDB CLI as an admin.
- Execute the following script (with a
usernameandpassword) to create a new user.
MongoDB Script
MongoDB Atlas
- Log in to your Atlas dashboard, click into the Database Access section of the Security options.
- Select Add New Database User. Choose the Password authentication method, and enter a
usernameandpasswordfor the new user. - In the Database User Privileges menu, select Grant Specific User Privileges. Within Specific Privileges, add the following:
read@<database>(for each database you’d like to grant access to). Leave the Collection field blank. - Click Add User to create the new user.
Setting up Network Access
If your MongoDB instance enforces IP Access restrictions, you’ll need to allow access to a static IP.
MongoDB CLI
- Connect to your MongoDB node using the MongoDB CLI as an admin.
- Execute the following script
MongoDB Script
MongoDB Atlas
- Log in to your Atlas dashboard, click into the Network Access section of the Security options.
- Select Add IP Address. In Access List Entry enter your Prequel deployment’s static IP. See here for the list of static IPs by deployment.
- Add an optional comment (e.g., “Prequel data sharing platform”) and click Confirm.