Set up VPC Peering on GCP

This is a guide for setting up a VPC peering connection between your TigerGraph Cloud VPC and another GCP VPC.

1. Prerequisite

  • At least one unterminated TigerGraph Cloud solution on GCP

2. Procedure

2.1. Initiate VPC Peering

Log in to the Cloud portal and navigate to the Network tab, click Initiate VPC Peering

Network tab

In the TigerGraph VPC section, choose the TigerGraph VPC that you want to initiate the peering connection from.

In the Peered VPC section, fill in the information of the VPC that you hope to peer with:

  • VPC ID: projects/[projectID]/global/networks/[VPCName], where projectID is the ID of your GCP project, and VPCName is the name of the VPC.

2.2. Create VPC peering connection from peered VPC to host VPC

After completing Step 1, your TigerGraph VPC will create a peering configuration to the VPC you hope to peer with. At this time, the peering connection will appear as Inactive. To complete the peering connection, your still need to create a matching peering configuration on your peered VPC to the TigerGraph VPC:

  1. In the Google Cloud Console, go to the VPC Network Peering page. Go to VPC Network Peering

  2. Click Create connection.

  3. Click Continue.

  4. Enter a Name for your peering connection.

  5. Under Your VPC network, select a network you want to peer.

  6. Select the TigerGraph network as the network to peer with.

    • Select In another project. You will need to specify the project ID that includes the network you want to peer with and the name of the VPC network:

      • Project ID:`tgcloud-prod`

      • VPC network name: Name of your TigerGraph Cloud VPC. You can find it in the TigerGraph Cloud portal  Network tab  VPC Peering page. Choose GCP as the platform, and in the VPC column is the VPC name.

  7. You can leave the other fields as they are (with only Export subnet routes with public IP selected) unless you need special configurations.

  8. Click Create.

Location of VPC name

After creating the matching peering configuration, the status of your VPC connection should change to Active meaning the two VPCs are peered successfully.