diff --git a/docs/platform/howto/manage-org-vpc-peering-google.md b/docs/platform/howto/manage-org-vpc-peering-google.md index 3efb8cd7..0c8365fa 100644 --- a/docs/platform/howto/manage-org-vpc-peering-google.md +++ b/docs/platform/howto/manage-org-vpc-peering-google.md @@ -4,8 +4,63 @@ sidebar_label: Google Cloud peering --- import ConsoleLabel from "@site/src/components/non-swizzled/ConsoleIcons"; +import CollectDataGoogle from "@site/static/includes/vpc/collect-data-google.md" +import AcceptPeeringAws from "@site/static/includes/vpc/accept-peering-google.md" import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -[Manage organization networking](/docs/platform/concepts/permissions#organization-permissions) -permissions +Set up a peering connection between your Aiven project VPC and a Google Cloud VPC. + +## Prerequisites + +- [Manage organization networking](/docs/platform/concepts/permissions#organization-permissions) + permissions +- Two VPCs to be peered: an + [organization VPC](/docs/platform/howto/manage-organization-vpc#create-an-organization-vpc) + in Aiven and a VPC in your Google Cloud account +- Access to the [Aiven Console](https://console.aiven.io/) +- Access to the [Google Cloud console](https://console.cloud.google.com/) + +## Create a peering connection + +### Collect data in the Google Cloud console + + + +### Create a peering in Aiven + +Create an organization VPC peering connection in the [Aiven Console](https://console.aiven.io/): + +1. Log in to the [Aiven Console](https://console.aiven.io/), and click **Admin** in the + top navigation bar. +1. Click in the sidebar. +1. On the **Organization VPCs** page, select an organization VPC to peer. +1. On the **Organization VPC details** page, click **Add peering connection**. +1. In the **Add peering connection** window: + 1. Enter the following: + - **GCP project ID** + - **GCP VPC network name** + 1. Click **Add peering connection**. + +This adds a connection pending acceptance in your Google Cloud account. + +This adds a new connection with the **Pending Peer** status. + + :::note + Select the blue **Pending peer** icon, and make a note of the Aiven + project ID and the VPC network name. + ::: + +### Accept the peering request in the Google Cloud console + + + +## Set up multiple VPC peering connections + +To peer multiple Google Cloud VPC networks to your Aiven-managed project VPC, see +[Set up a VPC peering connection](#set-up-vcp-peering), and add desired peering +connections one by one in the [Aiven Console](https://console.aiven.io) > **Services** > +**VPCs** > **VPC Peering connections**. + +For the limit on the number of the VPC peering connections allowed, see +the [Google Cloud documentation](https://cloud.google.com/vpc/docs/vpc-peering). diff --git a/docs/platform/howto/vpc-peering-gcp.md b/docs/platform/howto/vpc-peering-gcp.md index baed5d42..7e166eb4 100644 --- a/docs/platform/howto/vpc-peering-gcp.md +++ b/docs/platform/howto/vpc-peering-gcp.md @@ -3,6 +3,9 @@ title: Set up a project VPC peering with Google Cloud sidebar_label: Google Cloud peering --- +import CollectDataGoogle from "@site/static/includes/vpc/collect-data-google.md"; +import AcceptPeeringAws from "@site/static/includes/vpc/accept-peering-google.md" + Set up a peering connection between your Aiven project VPC and a Google Cloud VPC. ## Prerequisites @@ -15,15 +18,13 @@ Set up a peering connection between your Aiven project VPC and a Google Cloud VP - Access to the [Aiven Console](https://console.aiven.io/) - Access to the [Google Cloud console](https://console.cloud.google.com/) -## Set up a VPC peering connection {#set-up-vcp-peering} - -1. Open your the [Google Cloud console](https://console.cloud.google.com/). +## Create a peering connection -1. Select **VPC Networks** and find the VPC to connect to. +### Collect data in the the Google Cloud console -1. Click the project name, and make note of the **Project ID**. + -1. Under **VPC Network**, make note of the **VPC Network Name**. +### Create a peering in Aiven {#set-up-vcp-peering} 1. In [Aiven Console](https://console.aiven.io), select **VPCs** from the sidebar on the **Services** page. @@ -43,21 +44,9 @@ Set up a peering connection between your Aiven project VPC and a Google Cloud VP project ID and the VPC network name. ::: -1. In your [Google Cloud console](https://console.cloud.google.com/), go to **VPC** > - **VPC network peering**, and select **Create peering connection**. - -1. To create a peering connection: - - 1. Enter a name for the peering connection. - 1. Under **Peered VPC network**, select **In another project**. - 1. Enter the Aiven project ID and the VPC network name identified - in step 7 in Aiven Console. - -1. Click **Create**. +### Accept the peering request in the Google Cloud console -When the peering is successful, it is active in both -[Aiven Console](https://console.aiven.io) and your -[Google Cloud console](https://console.cloud.google.com/). + ## Set up multiple VPC peering connections diff --git a/static/includes/vpc/accept-peering-google.md b/static/includes/vpc/accept-peering-google.md new file mode 100644 index 00000000..a5c2890e --- /dev/null +++ b/static/includes/vpc/accept-peering-google.md @@ -0,0 +1,17 @@ +import ConsoleLabel from "@site/src/components/non-swizzled/ConsoleIcons"; + +1. In your [Google Cloud console](https://console.cloud.google.com/), go to **VPC** > + **VPC network peering**, and select **Create peering connection**. + +1. To create a peering connection: + + 1. Enter a name for the peering connection. + 1. Under **Peered VPC network**, select **In another project**. + 1. Enter the Aiven project ID and the VPC network name identified + in step 7 in Aiven Console. + +1. Click **Create**. + +When the peering is successful, it is active in both +[Aiven Console](https://console.aiven.io) and your +[Google Cloud console](https://console.cloud.google.com/). diff --git a/static/includes/vpc/collect-data-google.md b/static/includes/vpc/collect-data-google.md new file mode 100644 index 00000000..c544b634 --- /dev/null +++ b/static/includes/vpc/collect-data-google.md @@ -0,0 +1,7 @@ +import ConsoleLabel from "@site/src/components/non-swizzled/ConsoleIcons"; + +1. Log in to the [Google Cloud console](https://console.cloud.google.com/), open the + navigation menu, and select **Cloud overview** > **Dashboard**. +1. Find the **Project info** field, and collect your **Project ID**. +1. Use **Search** to go to **VPC networks**. +1. Find a VPC to connect to, and make note of its **Name**.