MongoDB Atlas AWS VPC Peering Not Connecting

Share
Workaround available AWS Updated November 13, 2026Based on 2 user reportsHow we research

Quick answer

VPC peering and private endpoints need matching access list, route table and security group entries; they are not available on free M0 clusters.

Most likely fix: Check the tier

How to fix it

Try these in order — the most common fix is first.

  1. 1. Check the tier

    1. Network peering and private endpoints are not supported on Free (M0) clusters; use a Dedicated tier
    Did this fix it?
  2. 2. Complete the peering

    1. Accept the peering request in AWS
    2. Add a route for the Atlas CIDR to your route tables
    3. Add your VPC CIDR to Security > Network Access
    Did this fix it?
  3. 3. Allow the port

    1. Allow outbound TCP 27017 in the security group
    2. Test with nc -zv <node-host> 27017 from the instance
    Did this fix it?
  4. 4. Check private endpoint DNS

    1. Verify DNS resolves the private endpoint hostname
    Did this fix it?

Symptoms

App in your VPC times out against Atlas while the public connection works.

Why it happens

  • Peering unsupported on M0
  • Route table lacks the Atlas CIDR
  • Security group blocks 27017
  • Peering not accepted or access list missing the VPC CIDR
  • Private endpoint DNS misconfigured

This guide also covers

  • mongodb atlas vpc peering not working
  • mongodb atlas aws lambda connection
  • atlas private endpoint timeout

Still not working?

If MongoDB Atlas keeps failing, you're not alone. See every MongoDB Atlas problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

The same problem in other apps

All not loading, error messages & connection guides →

Other MongoDB Atlas errors

All 10 MongoDB Atlas errors and fixes →