Skip to main content

Set up VPC peering on GCP

Once you've created a VPC on the Aiven platform, you can set up VPC peering on GCP.

Set up a VPC peering connection

  1. Open your GCP Console.

  2. Select VPC Networks and find the VPC to connect to.

  3. Click the project name, and make note of the Project ID.

  4. Under VPC Network, make note of the VPC Network Name.

  5. In Aiven Console, select VPCs from the sidebar on the Services page.

  6. On the Virtual private clouds page, select the VPC connection that you created.

  7. In the VPC Peering connections view, enter the GCP project ID (step 3) into the GCP project ID field and the exact GCP VPC network name (step 4) into the GCP VPC network name field. Next, select Add peering connection.

    This adds a new connection with the Pending Peer status.


    Select the blue Pending peer icon, and make a note of the Aiven project ID and the VPC network name.

  8. In your GCP Console, go to VPC > VPC network peering, and select Create peering connection.

  9. To create a peering connection:

    1. Enter a name for the peering connection.
    2. Under Peered VPC network, select In another project.
    3. Enter the Aiven project ID and the VPC network name identified in step 7 in Aiven Console.
  10. Click Create.

When the peering is successful, it is active in both Aiven Console and your GCP Console.

Set up multiple VPC peering connections

To peer multiple GCP VPC networks to your Aiven-managed project VPC, see Set up a VPC peering connection, and add desired peering connections one by one in the Aiven Console > Services > VPCs > VPC Peering connections.

For the limit on the number of the VPC peering connections allowed, see the GCP documentation.