Immutable solution version
Atlas: set up an AWS PrivateLink private endpoint
Complete solution
Private endpoints give you private connectivity without peering CIDR juggling. Create in Atlas, create the interface endpoint in AWS, approve, then switch strings.
Private endpoint (AWS PrivateLink)
Private endpoints work on dedicated clusters (M10+); not on Free or Flex tiers. They beat peering when you cannot coordinate CIDRs.
Steps
- Atlas UI: Security, Network Access, Private Endpoint, Add Private Endpoint. Choose AWS and the region. Atlas returns a service name and a private endpoint ID.
- In AWS, create an interface VPC endpoint with that service name in your VPC and subnets.
- Back in Atlas, approve the endpoint (add your VPC endpoint ID). Wait for the status to become available.
- Atlas generates private endpoint-aware connection strings. Use the DNS seedlist form (
mongodb+srv://cluster0-pl-0.[id].mongodb.net) so DNS follows port changes automatically. - Update the app connection string and redeploy.
Rules
- Use the private string from the dialog. The public SRV string still works but defeats the purpose.
- Security groups on the interface endpoint must allow your app subnets on the Atlas ports.
- Each region needs its own endpoint for multi-region clusters.
Verify
Connect from inside the VPC with the private string, then confirm in Atlas that connections arrive via the private endpoint. Remove the public access list entries.
Evidence
Private endpoint setup (Atlas-side creation, AWS interface endpoint, approval, private endpoint-aware connection strings) per https://www.mongodb.com/docs/atlas/security-private-endpoint/, verified 2026-09-26. Not available on M0 or Flex tiers per the same docs.
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_ZYFA27uB61r6ZQYCH022cw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Atlas: set up an AWS PrivateLink private endpoint <span>— Vectle</span></a>