What Is a Private Service Endpoint? Connect to One Cloud Service Privately
A private service endpoint gives a workload a private IP path to a specific managed service or service hosted in another network. It can let a private-subnet workload reach that target without sending traffic through an internet gateway or general-purpose NAT path. The endpoint usually exposes one service, not the provider’s entire network. AWS, Google Cloud, and Azure implement this idea differently, so compare the target, traffic direction, DNS behavior, and approval model rather than relying on the word “endpoint.”
A private service endpoint gives a workload a private IP path to a specific managed service or service hosted in another network. It can let a private-subnet workload reach that target without sending traffic through an internet gateway or general-purpose NAT path. The endpoint usually exposes one service, not the provider’s entire network. AWS, Google Cloud, and Azure implement this idea differently, so compare the target, traffic direction, DNS behavior, and approval model rather than relying on the word “endpoint.”
What does an endpoint connect, and how much does it expose?
When a service lives in another account or virtual network, the consumer may not be able to route directly to its private address. Address ranges can overlap, and broad access to the provider’s network may be undesirable. A managed endpoint gives the consumer network a private address for a service and forwards requests to the provider through a cloud-managed path. Because the connection is service-scoped, it can limit reachability more narrowly than joining two networks.
Suppose an application in a private subnet calls a managed database API. It resolves the service’s DNS name; if that name points to the endpoint’s private IP, the application starts an HTTPS connection to that address. The cloud platform forwards the request to the approved service and returns the response. The workload can reach this target even if it has no general internet-egress route. This does not automatically configure database permissions, TLS identity, or the service’s own firewall.
How is it different from peering, NAT, or a VPN?
An endpoint provides a path to a particular service. VPC peering connects routing between two virtual networks, potentially making multiple addresses and resources reachable. Consider peering or transit routing when workloads need broad communication with several resources in the other network; prefer a service endpoint when consumers should reach only a selected service.
A NAT gateway mainly translates the source address of connections that private workloads initiate toward external destinations. It does not select one permitted service in the same way. A VPN or dedicated circuit connects private networks and can fit access to multiple systems in another organization. That wider network connection may be unnecessary when the need is a single SaaS API or managed cloud service.
| Option | Typical scope | Consider it when |
|---|---|---|
| Private service endpoint | One service or service address | Only selected services should be reachable privately |
| VPC peering | Routable addresses across peered networks | Several resources in both networks must communicate |
| NAT gateway | Address translation for outbound connections | Workloads need general internet or public-destination egress |
| VPN or dedicated link | Private network-to-network connectivity | Many private systems in another network must be reached |
How do the major cloud providers implement it?
In AWS, interface VPC endpoints based on AWS PrivateLink connect to supported AWS services, endpoint services in other accounts, and certain partner services. AWS creates an endpoint network interface in each selected subnet and assigns it a private IP. S3 and DynamoDB also support gateway endpoints. Those use route-table entries and service prefix lists, and AWS distinguishes them from PrivateLink. Choose based on the service and required path.
Google Cloud Private Service Connect (PSC) lets a consumer use a private IP to reach managed or published services. PSC endpoints map a forwarding rule to a service connection; PSC backends add load-balancer capabilities. For Google APIs, Private Google Access is another option. Check whether the target is a Google API or a published service in another VPC, and whether you need a consumer-side load balancer.
An Azure Private Endpoint is a network interface with a private IP in a virtual-network subnet, connected to an Azure Private Link resource. The resource owner may approve the connection automatically or require a manual approval. Only an approved connection can carry traffic. Private DNS might be needed so the service’s normal name resolves to the endpoint IP. Creating a private endpoint does not by itself disable the service’s public network access, so check that setting separately.
How should you choose and configure one?
First confirm that the target service supports the endpoint type in the required region, for the required subresource and protocol. Do not assume every managed service supports every combination. Next decide whether consumers only need to initiate connections to the service or whether the provider must initiate connections into the consumer network. A typical consumer endpoint is not bidirectional network peering.
Design name resolution and access controls together. Confirm that the DNS name used by the application resolves to the endpoint’s private IP, the private DNS zone is linked to the right VPCs, and other clients will not resolve that name differently. Endpoint security groups or network rules, provider approval, IAM or service-account permissions, and application authentication are separate controls. A private route does not grant permission to call an API.
As a hypothetical example, a batch job in a private subnet needs to call only a cloud object-storage API. Check which dedicated endpoint type the service supports, then configure the workload’s DNS name to resolve through that endpoint. Verify DNS resolution, the TCP/TLS connection, and an authenticated API request separately. This separates name-resolution, network-path, and service-authorization failures. A failed ping alone does not prove the endpoint is broken: managed endpoints may not answer ICMP. Test the actual service port and application request.
What should you check when the connection fails?
If DNS returns a public address, inspect private DNS zone links, records, and service-specific DNS settings. If it returns a private IP but the connection times out, check endpoint state, subnet and security rules, the service port, and route selection. For services with an approval workflow, confirm the connection is approved. If the network connection succeeds but the API rejects the request, check IAM, an endpoint policy where supported, provider-side permissions, and application credentials.
An endpoint does not necessarily remove the service’s public address or block every public path. If the security goal is to prohibit public access, configure the service’s public-network setting, firewall, or policy separately, then verify access from another path is denied.
References
[What is AWS PrivateLink?](https://docs.aws.amazon.com/vpc/latest/privatelink/what-is-privatelink.html)
[Access an AWS service using an interface VPC endpoint](https://docs.aws.amazon.com/vpc/latest/privatelink/create-interface-endpoint.html)
[Gateway endpoints](https://docs.aws.amazon.com/vpc/latest/privatelink/gateway-endpoints.html)
[Private Service Connect](https://docs.cloud.google.com/vpc/docs/private-service-connect)
[Private access options for services](https://docs.cloud.google.com/vpc/docs/private-access-options)
[What is a private endpoint?](https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-overview)