Troubleshooting VPC Peering

VPC peering or CIDR Issues? Check here!

Rachelle Palmer avatar
Written by Rachelle Palmer
Updated over a week ago

A Virtual Private Cloud (VPC) in your AWS account will allow your application servers and development environment to directly connect to MongoDB Atlas while remaining isolated from public networks. Using a VPC peering connection allows MongoDB to automatically scale your application tier without having to manage your database firewall rules. 

This tutorial in Introducing VPC Peering for MongoDB Atlas blog post will show you how to set up your VPC both in Atlas and in AWS.

Prerequisites:

  • Create an AWS account. Create a VPC. Enable “DNS hostnames” on the VPC (optional). This will make it possible to immediately resolve the hostnames in the peered MongoDB Atlas clusters VPC to their private IP addresses (otherwise propagation can take up to one hour).  

  • Launch instances that you can SSH into. Download MongoDB shell software onto those instances to confirm connectivity.

  • Create a MongoDB Atlas account and deploy an M10+ cluster.


Looking for information on CIDRs? Read here.  For more documentation on Setting up a VPC Connection, please click here.

Did this answer your question?