How does AWS PrivateLink create and control connections?
AWS PrivateLink is an AWS networking technology for creating private connectivity between a VPC and AWS services, services offered by another account, supported resources, or service networks. A VPC endpoint becomes the entry point in the consumer VPC. Supported traffic stays on the AWS network instead of using a public internet route through an internet gateway or NAT. A private path alone, however, does not grant application permissions or automatically guarantee correct DNS, provider approval, or data encryption. ([AWS: AWS PrivateLink concepts](https://docs.aws.amazon.com/vpc/latest/privatelink/concepts.html), [AWS: What is AWS PrivateLink?](https://docs.aws.amazon.com/vpc/latest/privatelink/what-is-privatelink.html))
How does AWS PrivateLink create and control connections?
AWS PrivateLink is an AWS networking technology for creating private connectivity between a VPC and AWS services, services offered by another account, supported resources, or service networks. A VPC endpoint becomes the entry point in the consumer VPC. Supported traffic stays on the AWS network instead of using a public internet route through an internet gateway or NAT. A private path alone, however, does not grant application permissions or automatically guarantee correct DNS, provider approval, or data encryption. (AWS: AWS PrivateLink concepts, AWS: What is AWS PrivateLink?)
To understand PrivateLink, distinguish the consumer that requests access from the provider that offers a service. Suppose an application account needs to call an order API hosted in another account. The provider exposes the service as an endpoint service; the consumer creates an endpoint in its own VPC. Once the provider allows the connection, the consumer can send requests over a private path using DNS. This gives access to a specific service without joining the two VPCs into one routed network.
How does PrivateLink carry traffic?
The consumer creates a VPC endpoint for the service or resource it needs. With an interface endpoint, AWS creates a requester-managed network interface (ENI) with a private IP in each selected subnet. When application DNS resolves to that address, traffic enters through the ENI and is forwarded to the connected service. PrivateLink traffic between the endpoint and endpoint service does not traverse the public internet. (AWS: concepts and endpoint network interfaces)
This does not merge the consumer VPC with the provider's network. The consumer selects an endpoint for a particular service or resource, while the provider controls which consumers may connect. That differs from network-wide routing between VPCs with overlapping CIDRs. Application authentication and authorization, TLS configuration, and service-level access controls remain separate responsibilities.
AWS supports several endpoint types, but they do not all use the same connection model.
| Type | Connection and entry point | Typical use and boundary |
|---|---|---|
| Interface | TCP/UDP connection to an AWS service, AWS Marketplace service, or endpoint service through ENIs in selected subnets | Service-level access; ENI security groups and DNS matter |
| Gateway Load Balancer | Route-table path to a fleet of virtual network appliances | Inserting firewall or inspection appliances into traffic paths |
| Resource | Direct connection to a shared resource in another VPC | Requires resource sharing; some targets do not need an NLB in the middle |
| Service network | Connection to a shared VPC Lattice service network | One entry point for multiple services or resources associated with that network |
Keep S3 and DynamoDB gateway endpoints distinct. Although the VPC console also calls these endpoints, they do not use AWS PrivateLink; they add service routes to route tables. Treating an S3 gateway endpoint and a PrivateLink interface endpoint as the same technology obscures their routing and scope. (AWS: endpoint types)
How do two AWS accounts connect a service?
For a custom service shared across accounts, the provider and consumer have separate responsibilities. The provider typically places a Network Load Balancer (NLB) in front of the service and configures an endpoint service. A Gateway Load Balancer is a separate option for virtual appliances. The provider grants access to AWS principals, enables the Availability Zones to use, and decides whether to accept connection requests automatically or manually. (AWS: create a PrivateLink-powered service, AWS: configure endpoint service permissions and requests)
The consumer uses the service name and supported Availability Zones supplied by the provider to create an interface endpoint in its VPC. If manual acceptance is required, the request waits for approval. The consumer can use the endpoint once the provider accepts it and its state becomes Available. Being permitted to request a connection and having a particular request accepted are separate checks. (AWS: PrivateLink concepts and endpoint states)
For example, suppose an order API provider allows only an application role from a partner account and requires manual acceptance. The consumer requests an endpoint using the service name. The provider checks the account and supported zone, then accepts the request. The consumer then verifies that the application uses the intended DNS name and that the endpoint security group allows the API port. Network acceptance by itself does not grant permission to use the API.
Offering a service in multiple Availability Zones can reduce dependence on one zone. AWS recommends enabling the NLB in at least two zones and placing service targets in those zones. Consumers can place endpoint ENIs in zones shared by both parties. Across accounts, an Availability Zone name can map to different physical zones, so use AZ IDs when matching zones. (AWS: service sharing, DNS and Availability Zones, AWS: endpoint service considerations)
What do DNS and policies control?
An interface endpoint has AWS-provided regional and zonal DNS names. If the provider verifies domain ownership and associates a private DNS name with the service, consumers can keep using an existing service name and have it resolve to the endpoint's private IPs. If custom DNS or on-premises clients are involved, plan Route 53 Resolver and conditional forwarding as well. If DNS returns the public service address or does not resolve to endpoint ENIs, traffic will not use the intended path. (AWS: service sharing and private DNS, AWS: accessing AWS services and DNS)
Policies govern different boundaries. The provider's endpoint-service permissions determine which AWS principals may request a connection. Manual acceptance determines whether an individual request is admitted. The consumer's endpoint policy is an additional IAM resource policy that restricts which principals can use that endpoint for which resources or actions. Application IAM and resource policies, service authentication, and network controls such as security groups still apply. No single layer automatically replaces the others. The default endpoint policy can be broad, so narrow it to the required scope and evaluate the effective permissions. (AWS: endpoint policies, AWS: endpoint-service permissions and acceptance)
What should you check when a connection fails?
Separate endpoint state, DNS, network reachability, and service authorization to narrow the cause.
**Check state:** Confirm the consumer endpoint is `Available`. If it is `PendingAcceptance`, check whether the provider must approve it. For `Rejected` or `Failed`, review events and configuration on both sides.
**Check DNS:** Confirm the name the application actually uses resolves to the endpoint's private addresses. Check Resolver forwarding rules when custom DNS or on-premises clients are involved.
**Check path and port:** Confirm endpoint ENIs are in the required subnets and zones and that security groups and network ACLs allow the service port. On the provider side, check that NLB targets are healthy.
**Check request authorization:** Review endpoint-service permissions and the consumer endpoint policy, then check application IAM and resource policies and service authentication separately.
**Interpret provider logs:** The service application may see the NLB node's private IP rather than the consumer's original IP. If the original consumer IP and endpoint ID are needed, verify NLB Proxy Protocol support and application handling. ([AWS: endpoint service considerations](https://docs.aws.amazon.com/vpc/latest/privatelink/create-endpoint-service.html))
To verify recovery, confirm the endpoint is available, DNS returns the intended address, and an actual authenticated API request succeeds over TCP/TLS. When comparing with a public path, record DNS results and routing conditions so it is clear which path was tested.
When might PrivateLink be the wrong fit?
PrivateLink is useful when consumers need a connection to specific services or resources. It is not a replacement for every network connection. If workloads need routed access to multiple CIDR ranges in another VPC or arbitrary network-level communication, VPC peering, Transit Gateway, or VPN may fit better. If the goal is to expose only selected services without granting broad network access, PrivateLink's narrower entry point can make the boundary clearer.
Account for cost and operating work as well. Interface endpoints incur hourly charges per enabled Availability Zone and data-processing charges; the NLB and service operation can add costs. Plan zones, traffic volume, DNS, connection approval, and permission review together, and check current regional pricing. This article does not calculate a specific bill or promise a performance improvement. (AWS: PrivateLink access to AWS services and pricing)
Official documentation
[AWS PrivateLink concepts](https://docs.aws.amazon.com/vpc/latest/privatelink/concepts.html)
[What is AWS PrivateLink?](https://docs.aws.amazon.com/vpc/latest/privatelink/what-is-privatelink.html)
[Access AWS services through AWS PrivateLink](https://docs.aws.amazon.com/vpc/latest/privatelink/privatelink-access-aws-services.html)
[Share services through AWS PrivateLink](https://docs.aws.amazon.com/vpc/latest/privatelink/privatelink-share-your-services.html)
[Create a service powered by PrivateLink](https://docs.aws.amazon.com/vpc/latest/privatelink/create-endpoint-service.html)
[Configure endpoint-service permissions, connections, and DNS](https://docs.aws.amazon.com/vpc/latest/privatelink/configure-endpoint-service.html)