AWS PrivateLink

Interface VPC endpoints, NLB-backed endpoint services, private connectivity without internet traversal, and endpoint service sharing.

Overview

Overview AWS PrivateLink provides private connectivity between VPCs, AWS services, and on-premises applications without exposing traffic to the public internet. It enables service providers (whether AWS itself or third-party SaaS vendors) to offer services that consumers can access privately from within their own VPCs.

PrivateLink works through two complementary constructs: VPC Endpoints (on the consumer side) and Endpoint Services (on the provider side). An Interface VPC Endpoint creates one or more Elastic Network Interfaces (ENIs) with private IP addresses in your VPC subnets. Traffic to the service is routed through these ENIs, never leaving the AWS network. This is fundamentally different from internet-based access or even VPC peering — the service's actual infrastructure can be in a completely separate VPC or account.

The provider side uses a Network Load Balancer (NLB) as the front door to an Endpoint Service. The NLB receives traffic from consumers' ENIs and forwards to the actual service targets (EC2 instances, ECS tasks, Lambda functions via ALB). AWS manages the cross-VPC networking transparently.

AWS uses PrivateLink for its own services: S3 Interface Endpoints, DynamoDB Interface Endpoints, SSM, Secrets Manager, ECR, and dozens more all support private connectivity via PrivateLink. This allows EC2 instances in private subnets with no internet gateway to still access AWS APIs securely.

Third-party SaaS vendors (Datadog, Snowflake, New Relic) offer their services via PrivateLink, allowing enterprise customers to consume SaaS without traffic leaving their private network perimeter — critical for compliance-sensitive industries like healthcare and finance.

Key concepts

  • Interface VPC Endpoint
  • Gateway Endpoint
  • Endpoint Service
  • Private DNS
  • Endpoint Policies

Interview questions

  • How would you design private connectivity for an EC2 instance in a private subnet (no NAT Gateway, no internet gateway) to access S3, SSM Parameter Store, and ECR for container image pulls?

Sign up free to read the full topic

More Networking topics

Start free on Cariara · Coding problems · System design studio