How to design private service connections with Google Cloud Private Service Connect
Google Cloud Private Service Connect (PSC) lets consumers privately use Google APIs or services published from another VPC through internal addresses in the consumer VPC. A consumer can connect to a specific service without peering with the producer's entire VPC, while the producer keeps control of its network and which consumers it accepts. PSC has several connection types, so first decide whether you are consuming a Google API, consuming a published service in another VPC, or providing a service yourself. ([Google Cloud: Private Service Connect overview](https://docs.cloud.google.com/vpc/docs/private-service-connect))
How to design private service connections with Google Cloud Private Service Connect
Google Cloud Private Service Connect (PSC) lets consumers privately use Google APIs or services published from another VPC through internal addresses in the consumer VPC. A consumer can connect to a specific service without peering with the producer's entire VPC, while the producer keeps control of its network and which consumers it accepts. PSC has several connection types, so first decide whether you are consuming a Google API, consuming a published service in another VPC, or providing a service yourself. (Google Cloud: Private Service Connect overview)
For example, suppose an order application needs to call an internal payment service in a separate project. The payment team publishes a service attachment that refers to the forwarding rule of its load balancer. The order team creates a PSC endpoint in its own VPC and gets an internal IP address. The application sends requests to that IP or its associated DNS name, and PSC forwards them to the producer service. The teams do not need to peer their whole VPCs, but consumer approval, DNS, firewalls, and application authentication still need separate configuration. (Google Cloud: Access published services through endpoints, Google Cloud: About published services)
How do consumers and producers connect through PSC?
PSC provides service-oriented connectivity. The consumer VPC has an endpoint with an internal IP that targets a specific service or API; the producer VPC exposes a service attachment. When a client in the consumer network initiates a connection to the endpoint, Google Cloud forwards traffic to the producer service using network address translation (NAT). This is not a route between entire VPCs. The consumer does not thereby gain access to arbitrary addresses in the producer VPC, and the producer cannot use this endpoint to initiate arbitrary connections into the consumer VPC. (Google Cloud: PSC overview, Google Cloud: Access published services through endpoints)
An endpoint for a published service uses a forwarding rule and an internal IP. The producer's service attachment specifies the target load balancer, NAT subnet, and consumer acceptance policy. A consumer endpoint for a published service and the producer service must be in the same region; the endpoint must be in the consumer VPC, separate from the VPC that hosts the target service. PSC endpoints for Google APIs are a different type: they can use a global internal IP and target an API bundle or supported APIs. Do not apply the regional constraints for published-service endpoints to Google API endpoints without checking their type. (Google Cloud: Published service endpoint requirements, Google Cloud: Google API endpoint overview)
PSC also has backends that route traffic through a consumer load balancer to published services or Google APIs. A simple endpoint suits layer 4 service connectivity; a backend can be useful when the consumer load balancer needs to provide a custom domain or certificate, path and security policies, observability, or supported regional failover. By contrast, a PSC interface is a separate type for managed service egress when the producer must initiate connections toward the consumer VPC. Its direction differs from an endpoint, and it can have transitive connectivity, so it should not be described as an interchangeable consumer access method. (Google Cloud: PSC types and selection)
How do Google APIs, published services, and other private access options differ?
PSC supports two main targets: Google APIs such as Cloud Storage, and services published from a separate VPC operated by Google, a SaaS provider, or another internal team. A PSC endpoint for Google APIs lets a VPC use internal IP addresses and manage API routing and DNS more directly. Default Google service DNS names can resolve to publicly routable IP addresses, while traffic from Google Cloud resources to those addresses can remain within Google's network. Do not equate a public IP in DNS with traffic necessarily leaving for the public internet. (Google Cloud: Google API endpoint overview)
Choose among similarly named options by target and operational need:
| Option | Connection model | When to consider it |
|---|---|---|
| PSC endpoint | An internal VPC IP targets a Google API or a specific published service | You need destination-specific internal addresses, service-level boundaries, and separation between consumer and producer networks |
| PSC backend | A consumer load balancer forwards traffic through PSC | You need a custom domain or certificate, policy enforcement, logging and visibility, or supported regional failover |
| Private Google Access | A Google Cloud resource without an external IP reaches standard Google API addresses | You need API access but do not need a dedicated PSC internal IP |
| Private Services Access | VPC Network Peering connects to a Google or third-party managed network | The service requires or supports this model |
Supported services and configurations differ. Check current service documentation to confirm whether a particular Google API supports PSC, whether on-premises access works, and whether you need a global or regional address. The label “private” alone does not make Private Google Access, Private Services Access, and PSC interchangeable. (Google Cloud: Private access options)
How do you configure a PSC endpoint for a service in another VPC?
The following is a general consumer-side workflow. Names in the console and required permissions can change, so compare the current Google Cloud instructions with the service attachment URI supplied by the provider. No resource was created or connection tested in a real project for this article.
**Confirm the target and region:** Ask the provider for the service attachment URI, required protocol and IP version, DNS domain, and approval method. The published service and consumer endpoint must be in the same region.
**Prepare the consumer network:** Have a regular subnet in the target region for the internal IP. Enable the APIs required by the current procedure, such as Compute Engine, Service Directory, and Cloud DNS APIs. Verify IAM permissions for creating, viewing, and deleting the endpoint.
**Reserve an internal address:** Reserve an unused internal IP or choose the supported address assignment method during endpoint creation. The address must be available in the consumer VPC.
**Create the endpoint forwarding rule:** In the consumer VPC and region, create a forwarding rule that targets the provider's service attachment URI. Check that the endpoint name, reserved IP, network, and region match the design.
**Check producer approval:** If the provider requires explicit approval, the consumer project, VPC, or endpoint must be on its accept list. Confirm the connection has an accepted status and that no organization policy blocks it.
**Configure DNS and clients:** If the service supplies a DNS domain, check the scope of automatically created DNS records. Otherwise, create the required mapping in Cloud DNS or organizational DNS so the name points to the endpoint IP. For on-premises clients, separately enable queries to the private DNS zone.
**Verify in stages:** From a client, confirm that the name resolves to the intended internal IP; then check connection status and path and send an application request with real authentication. A correct DNS response alone does not prove producer approval or application authorization. ([Google Cloud: Configure endpoints for published services](https://docs.cloud.google.com/vpc/docs/configure-private-service-connect-services), [Google Cloud: Manage published services](https://docs.cloud.google.com/vpc/docs/manage-private-service-connect-services), [Google Cloud: DNS for published services](https://docs.cloud.google.com/vpc/docs/dns-vpc-hosted-services))
What should you check for approval, DNS, and network access?
A producer service attachment can automatically accept every consumer or accept only selected consumers. Google recommends explicit consumer acceptance unless broad access is intended and controlled through other means. Accept lists must use one consumer identifier type—project, VPC, or individual endpoint—and organization policy can still reject a connection. Updating an accept list might not immediately terminate previously accepted connections by default, so check connection reconciliation and revocation behavior separately. (Google Cloud: Manage access to published services)
For on-premises access to a published-service endpoint, a Cloud VPN tunnel or Cloud Interconnect VLAN attachment must terminate in the same VPC (or Shared VPC) that contains the endpoint. Clients in a peered VPC cannot reach endpoints this way. Reaching the endpoint from another region over a hybrid path can require global access. If clients use a DNS name, configure on-premises DNS separately so it can query the private DNS zone. Verify these endpoint and route constraints before deployment. (Google Cloud: Hybrid access and endpoint limitations)
Producers also need to size the NAT subnet. Each endpoint or backend connected to a service attachment consumes a NAT subnet IP; if the subnet runs out of addresses, additional PSC connections can fail. The producer backend might see a NAT-translated address instead of the consumer's original address, which matters for IP-based logging and allowlists. PSC NAT also has fixed idle timeouts; applications with long-idle TCP connections should compare their keepalive or reconnect behavior with the documented limits. (Google Cloud: Published service NAT and capacity)
How do you diagnose failures and decide when to use PSC?
Check failures in this order to narrow down the cause:
**Support and target:** Confirm that you chose the right PSC type and that the service, protocol, and IP version are supported.
**Region and networks:** For a published-service endpoint, confirm that it is in the producer service's region, is in a consumer VPC separate from the producer VPC, and uses a nonconflicting address.
**Connection status and approval:** Check the service attachment's connection preference, consumer accept and reject lists, organization policy, and endpoint connection status.
**DNS:** Resolve the FQDN from the client and check that it returns the intended internal endpoint IP. Check record creation, Cloud DNS scope, and hybrid DNS forwarding separately.
**Network and application:** Check firewalls, routes, and protocol; isolate network reachability from name resolution. Then check service authentication and authorization and the producer backend health.
**Producer capacity:** If you operate the producer service, check connection status and available NAT subnet addresses. DNS changes cannot fix a connection limit or exhausted NAT pool.
PSC fits when you need an internal-IP path to a specific Google API or published service while avoiding whole-VPC connectivity and preserving consumer/producer management boundaries. Consider another model if the service's support, region, IP-version, or hybrid-access constraints do not fit, or if the actual requirement is broad connectivity between VPCs. Record the target type, connection direction, approval policy, name resolution, and access permissions separately so success at one layer is not mistaken for a working end-to-end connection.
Official documentation
[Private Service Connect overview and types](https://docs.cloud.google.com/vpc/docs/private-service-connect)
[Access published services through endpoints](https://docs.cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints)
[Configure endpoints for published services](https://docs.cloud.google.com/vpc/docs/configure-private-service-connect-services)
[About published services and producer setup](https://docs.cloud.google.com/vpc/docs/about-vpc-hosted-services?hl=en)
[Manage published services and consumer approval](https://docs.cloud.google.com/vpc/docs/manage-private-service-connect-services)
[DNS for published services](https://docs.cloud.google.com/vpc/docs/dns-vpc-hosted-services)
[Compare private access options for services](https://docs.cloud.google.com/vpc/docs/private-access-options)
[Use PSC endpoints for Google APIs](https://docs.cloud.google.com/vpc/docs/about-accessing-google-apis-endpoints)