Interview Prep/Networking/VPC & Cloud Network Design

How do you expose a service in one VPC to a customer's VPC without peering?

IntermediateScenarioVPC & Cloud Network Design
Answer

Situation read → This is the PrivateLink use case: one-way service exposure without full network connectivity or CIDR coordination.

What I'd do →

  1. Put the service behind a Network Load Balancer or Gateway LB
  2. Create a VPC endpoint service pointing at the NLB and require acceptance
  3. The consumer creates an interface endpoint to your service name in their VPC
  4. Allow principals with aws ec2 modify-vpc-endpoint-service-permissions
  5. Consumer sees a private IP in their subnet and overlapping CIDRs do not matter

Why → PrivateLink is unidirectional and NATs the connection, so neither side exposes its network.

Interview tip → Mention that this is how most SaaS vendors offer private access.

All Networking questions Roadmap: Networking for DevOps

More on VPC & Cloud Network Design