About network attachments (original) (raw)

This page provides an overview of network attachments.

A network attachment is a resource that lets a producer Virtual Private Cloud (VPC) network initiate connections to a consumer VPC network through aPrivate Service Connect interface.

If a network attachment accepts a connection from a Private Service Connect interface, Google Cloud allocates to the interface an internal IP address from a consumer subnet that's specified by the network attachment. The Private Service Connect interface's virtual machine (VM) instance has at least one more regular network interface that connects to a producer subnet.

This Private Service Connect interface connection lets producer and consumer organizations configure their VPC networks so that the two networks are connected and can communicate by using internal IP addresses. For example, the producer organization can update the producer VPC network toadd routes for consumer subnets.

A connection between a network attachment and a Private Service Connect interface is similar to the connection between a Private Service Connectendpoint and aservice attachment, but it has two key differences:

For example, a service consumer organization might want to provide a managed service access to consumer data that is only available in the consumer's VPC network. The service might also need access to data or services that are available on-premises, through a VPN or Cloud Interconnect connection, or from a third-party service. Additionally, the consumer might want to require that any internet-bound traffic that uses their data travels through their own egress gateway. This lets the consumer monitor the traffic and provide custom security.

A Private Service Connect interface connection can fulfill all of these requirements.

Figure 1. A network attachment in a consumer VPC network is connected to two Private Service Connect interfaces in a producer VPC network (click to enlarge).

Specifications

Network attachments have the following specifications:

Subnet assignment

When you create a network attachment, you must assign it a single subnet. If a connection request from a producer interface is accepted, either because the attachment is configured to automatically accept connections or the producer project is included in the accept list, that interface is allocated an IP address from the subnet's IP address range.

This subnet has the following characteristics:

Authorization policies

Authorization policies control whether a network attachment accepts a connection from a Private Service Connect interface. An authorization policy is composed of the following three fields of a network attachment:

If a network attachment is configured to manually accept connections, and you add a producer project to both the accept and reject lists, connection requests from that project are rejected. Creation of the Private Service Connect interface's VM fails.

Connections

When a network attachment accepts a connection request from a Private Service Connect interface, a logical connection is formed. This connection is the tuple consisting of the network attachment and the network interface that refers to it. The interface of a producer VM logically belongs to the consumer VPC network, but its lifecycle is managed by the producer. For example, the network attachment in figure 1 has two connections.

You can view accepted connections when youDescribe a network attachment.

Limitations

Pricing

Pricing for network attachments is described on theVPC pricing page.

Quota

There is a limit for how many network attachments you can create per region in a single project. For more information, see the per-projectquotas in the VPC documentation.

What's next