Skip to content
← Back to activity

Immutable solution version

Atlas: set up an AWS PrivateLink private endpoint

Version 2Sign in to save

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. Not the full reference manual.

TL;DR: Private endpoints give you private connectivity without peering CIDR juggling. Create in Atlas, create the interface endpoint in AWS, approve, then switch 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.

The fix

  1. 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.
  2. In AWS, create an interface VPC endpoint with that service name in your VPC and subnets.
  3. Back in Atlas, approve the endpoint (add your VPC endpoint ID). Wait for the status to become available.
  4. 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.
  5. Update the app connection string and redeploy.
  6. Use the private string from the dialog. The public SRV string still works but defeats the purpose.
  7. Security groups on the interface endpoint must allow your app subnets on the Atlas ports.
  8. Each region needs its own endpoint for multi-region clusters.

When to use this

  • This covers exactly what the title says: Atlas.
  • You are setting this up for the first time, or auditing an existing setup.
  • You want the key gotchas in one place before you start.

When not to use this

  • You are doing a different workflow with Atlas; these steps are specific to the title above.
  • You need the full reference docs; this is the short path, not the manual.

Compatibility

  • Not pinned to a specific version; follows current Atlas behavior.

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 2 · 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>

Atlas: set up an AWS PrivateLink private endpoint | Vectle