# MongoDB Atlas

[**MongoDB Atlas**](https://www.mongodb.com/cloud/atlas) is a managed MongoDB database from [**MongoDB**](https://www.mongodb.com). This tutorial will explain configure MongoDB Atlas with VPC peering. This creates a reliable and secure MongoDB cluster with backups. [**The M0, M2 and M5 plans use shared RAM and have low connection limits, these plans should not be used for production systems.**](https://docs.atlas.mongodb.com/reference/free-shared-limitations/)

### MongoDB Atlas Cluster

From the [**MongoDB Cloud Manager**](https://cloud.mongodb.com) click *Build a New Cluster*. Name the cluster and select *MongoDB 3.6 with WiredTiger*. Choose the same provider and region as your Pritunl cluster.

![](/files/CwijxLozB99ewI68QNrf)

Next from the *Security* tab click *Add New User*. Set the privileges to *readWrite* and set the database name. Then autogenerate a secure password.

![](/files/B00fMzSQX2zn9neCx6WK)

From the *Peering* tab click *New Peering Connection*. Fill in the AWS account ID and VPC information.

![](/files/Y0YAvtyME5tfwYfqEjCS)

Once done open the AWS VPC dashboard and right click the VPC and select *Edit DNS Resolution*. Then select *Yes* and save.

![](/files/B7pCByOj9zhMQnW9vzxS)

Right click the VPC and select *Edit DNS Hostnames*. Then select *Yes* and save.

![](/files/lTPkLRfCJ4lrz4w8LBGE)

From the VPC dashboard click *Peering Connections* on the right. Then accept the pending peering connection from MongoDB.

![](/files/mCNdJBm8QzdYZiWyAc32)

Once done the VPC peering connection should be established.

![](/files/PUofJvCRA4YtpCaVuCp2)

Click *Route Tables* on the right and edit the routing table for the VPC. Add the Atlas CIDR block from the steps above as the *Destination* then select the pcx peering connection as the *Target*.

![](/files/zegHSprzYUaCpU8SYgh2)

From the MongoDB Atlas manager select the cluster and get the MongoDB 3.4 URI. Replace the password with the generated password from earlier and copy this URI to the Pritunl settings.

![](/files/lUvHFGTQV1XBzfkvdDqc)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pritunl.com/kb/vpn/getting-started/mongodb-atlas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
