Skip to main content

07. AWS PrivateLink

AWS PrivateLink enables private connectivity between VPCs and AWS services without exposing traffic to the public internet.

It is part of the VPC Endpoint Services family and is designed for secure, scalable, one-way access to services across AWS accounts.

Note: On-premises networks can access PrivateLink services only via a VPC that is already connected using VPN or AWS Direct Connect.


ProblemTraditional SolutionIssuesPrivateLink Advantage
Connect to services in another VPCVPC PeeringDoesn’t scale, CIDR complexityScalable, no CIDR dependency
Access vendor SaaS securelyPublic endpointInternet exposure, higher latencyPrivate access over AWS backbone

How It Works​

πŸ”Ή Scenario​

  • Service Provider (Vendor) hosts a service in their own VPC (e.g., AWS Marketplace SaaS provider).
  • Service Consumer (Customer) wants to access the service privately from their own VPC.

Instead of VPC Peering or public endpoints, a PrivateLink connection is used.

AWS PrivateLink Architecture

πŸ”Ή Architecture​

ComponentDescription
Service Provider (Vendor)Exposes the service using a Network Load Balancer (NLB)
Service Consumer (Customer)Creates an Interface VPC Endpoint (ENI) in their VPC
PrivateLink ConnectionPrivate, one-way connectivity from consumer ENI to provider NLB

Key Benefits​

βœ… No need for:

  • Internet Gateway (for service access)
  • NAT Gateway (for service access)
  • VPC Peering
  • CIDR route propagation

βœ… Traffic remains on the AWS private backbone
βœ… Highly scalable β€” supports many consumers without network complexity
βœ… Secure β€” service is not exposed to the public internet


Important Characteristics (Exam & Real-World)​

  • Works only with Network Load Balancers
  • One-way access: consumer β†’ provider
  • Does not replace VPN or Direct Connect
  • Route tables still exist, but no inter-VPC routing is required

Summary​

FeatureDescription
Service TypeVPC Endpoint Service
Endpoint TypeInterface Endpoint
Connection TypeAWS PrivateLink
Provider ComponentNetwork Load Balancer (NLB)
Consumer ComponentElastic Network Interface (ENI)
Internet UsageNone (uses AWS private network)