Skip to content

Commit

Permalink
google vpc peering for pj and org
Browse files Browse the repository at this point in the history
  • Loading branch information
wojcik-dorota committed Jan 8, 2025
1 parent d69ae51 commit af1a64f
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 22 deletions.
59 changes: 57 additions & 2 deletions docs/platform/howto/manage-org-vpc-peering-google.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

<CollectDataGoogle/>

### 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 <ConsoleLabel name="organizationvpcs"/> 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

<AcceptPeeringGoogle/>

## 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).
29 changes: 9 additions & 20 deletions docs/platform/howto/vpc-peering-gcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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**.
<CollectDataGoogle/>

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.
Expand All @@ -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/).
<AcceptPeeringGoogle/>

## Set up multiple VPC peering connections

Expand Down
17 changes: 17 additions & 0 deletions static/includes/vpc/accept-peering-google.md
Original file line number Diff line number Diff line change
@@ -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/).
7 changes: 7 additions & 0 deletions static/includes/vpc/collect-data-google.md
Original file line number Diff line number Diff line change
@@ -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**.

0 comments on commit af1a64f

Please sign in to comment.