AWS in 1 Min · Episode 49

AWS PrivateLink explained

Share a service, not a network. Watch the one-minute video, then read the details.

David Gomez1:12 video · 3 min read

"To share a service with a customer, connect the two networks." That gives away far more than the customer needs. VPC peering or a Transit Gateway joins networks: with the right routes and rules, anything on one side can reach anything on the other. When someone only needs to call one API, you want a door, not a road. AWS PrivateLink is that door.

PrivateLink lets clients in one VPC reach one specific service in another VPC, using private IP addresses, as if the service were hosted in their own network. Traffic stays on the AWS network and does not cross the public internet.

It is the same technology behind interface VPC endpoints for AWS services such as SQS or Bedrock. The difference here is that you are the one publishing the service.

The two sides

The provider (the team or company that owns the service):

  1. Runs the service behind a Network Load Balancer in its VPC.
  2. Creates an endpoint service that points to that load balancer. AWS gives it a service name.
  3. Adds permissions for the AWS principals (accounts, roles or users) allowed to connect. By default nobody can.
  4. Optionally requires manual acceptance, so each connection request is approved or rejected.

The consumer (the customer):

  1. Creates an interface endpoint in its own VPC, using the provider's service name.
  2. AWS places an endpoint network interface with a private IP in each subnet chosen.
  3. The application calls that address, or a DNS name that resolves to it.

For high availability, AWS recommends making the service available in at least two Availability Zones.

Why not just peer the VPCs?

  • Scope: peering connects networks; PrivateLink exposes a single service.
  • Direction: the consumer initiates connections to the service. The provider's network gets no route into the consumer's VPC.
  • Overlapping addresses: peering fails if the two VPCs use overlapping IP ranges. PrivateLink doesn't care, because the consumer only ever talks to an address in its own subnet. For a software company with hundreds of customers who all picked 10.0.0.0/16, this is the deciding factor.
  • Scale: one endpoint service can serve many consumer VPCs and accounts without a mesh of connections.

The trade-offs: the classic endpoint-service model needs a load balancer in front, and both the endpoint hours and the data processed are billed. Peering has no hourly charge. If two of your own VPCs need broad two-way access, peering or a Transit Gateway is still the simpler tool.

PrivateLink has also grown: an endpoint service can be made available to consumers in other Regions, and newer resource endpoints let you share a single resource, such as a database, without a load balancer. Check the current PrivateLink guide before you design around these.

Where AI fits

If you build your own AI product, say a fine-tuned model behind an inference API, your enterprise customers will ask how their prompts reach you. "Over the public internet, to a public endpoint" is a hard answer for a bank or a hospital to accept.

With PrivateLink you put the inference API behind a Network Load Balancer, publish it as an endpoint service, and allow each customer's AWS account. They create an interface endpoint and call your model from inside their own VPC. No public endpoint, no peering, no address planning between companies. Many software vendors on AWS offer their products this way for exactly that reason.

Quick recap

  • PrivateLink shares one service, not a network.
  • The provider publishes an endpoint service behind a Network Load Balancer and decides who connects; the consumer creates an interface endpoint.
  • Connections start from the consumer side, traffic stays on the AWS network, and overlapping IP ranges are fine.
AWS in 1 Min #49 · 1:12

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS