Set up a Network Peering Connection¶
This feature is not available for
M0 (Free Tier),
M5 clusters. To learn more about which features are unavailable,
see Atlas M0 (Free Tier), M2, and M5 Limitations.
Atlas supports Network Peering connections for AWS, GCP, and Azure-backed and multi-cloud clusters.
Configure an Atlas Network Peering Connection¶
To configure Atlas Network Peering for a cluster, perform the procedure on the tab corresponding to your cluster's cloud provider. You also configure the Atlas VPC CIDR during this procedure.
To configure the Atlas CIDR without configuring Network Peering, see Create a New Network Peering Container. You must use the API to configure the Atlas CIDR without Network Peering.
Network Peering Architectures¶
Multiple cloud-hosted applications might need to connect securely to the same Atlas project.
Network Peering between an Atlas VPC and Two Virtual Networks with Identical CIDR Blocks¶
Consider a case where two applications use virtual networks (VPC, VNet) with identical IP CIDR blocks. You want both applications to securely connect to the same Atlas cluster via VPC peering. To achieve this, create one network peering connection between each application's virtual network and your Atlas cluster.
Cloud provider virtual networks can’t peer to each other if they have identical CIDR blocks. However, you can peer each of the applications' virtual networks with the Atlas virtual network if the Atlas virtual network includes two non-overlapping CIDR blocks. Configure each of the peering connections to have non-overlapping route-back CIDR blocks in the Atlas virtual network.
Follow this general process:
- Before you deploy any clusters, create a network peering connection for each virtual network that you want to peer with Atlas. You do this by creating a CIDR block in the Atlas virtual network for each application's virtual network.
- In the virtual network's configuration for your cloud provider, establish routing between each of your application's virtual networks and their respective Atlas CIDR blocks.
- Deploy your Atlas cluster.
Consider two applications in the same AWS account in the same region. Each application has its own VPC. The VPC