Skip to content

Commit

Permalink
reuse research
Browse files Browse the repository at this point in the history
  • Loading branch information
wojcik-dorota committed Dec 19, 2024
1 parent 01f9db1 commit c4146d6
Show file tree
Hide file tree
Showing 9 changed files with 243 additions and 148 deletions.
111 changes: 3 additions & 108 deletions docs/platform/howto/manage-org-vpc-peering-aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,113 +3,8 @@ title: Manage organization VPC peering with AWS
sidebar_label: Peer org VPCs with AWS
---

import ConsoleLabel from "@site/src/components/ConsoleIcons";
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import VpcPeeringAws from "@site/static/includes/manage-vpc-peering-aws.md"

<!--
Set up or delete an organization-wide VPC in the Aiven Platform. Enable new Aiven projects in the organization VPC or migrate existing Aiven projects to the organization VPC. Access resources within the organization VPC from the public internet.
-->
## Prerequisites
Set up a peering connection between your Aiven organization VPC and an AWS VPC.

- [Super admin role](/docs/platform/howto/make-super-admin) to manage organization VPCs
- 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 AWS account
- One of the following tools for VPC peering operations:
- [Aiven Console](https://console.aiven.io/)
- [Aiven CLI](/docs/tools/cli)
- [Aiven API](/docs/tools/api)

## Create a peering connection

### Collect data in the AWS Console

1. Log in to the [AWS Management Console](https://console.aws.amazon.com) and go to your
profile information.
1. Find and save your account ID.
1. Go to the VPC service: **All services** > **Networking & Content Delivery** > **VPC**
\> **Your VPCs**.
1. Find a VPC to peer and save its ID.
1. Find and save a cloud region that the VPC is located in.

### Create a peering in Aiven

Create an organization VPC peering connection using a tool of your choice:

<Tabs groupId="group1">
<TabItem value="console" label="Aiven Console" default>

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:
- **AWS account ID**
- **AWS VPC region**
- **AWS VPC ID**
1. Click **Add peering connection**.

### Accept the peering request in the AWS Console

1. Log in to the [AWS Management Console](https://console.aws.amazon.com), and go to the
VPC service (**All services** > **Networking & Content Delivery** > **VPC**).
1. Click **Peering connections** in the sidebar.
1. Find and select the peering request from Aiven, and click **Actions** > **Accept request**.
1. Create or update your AWS route tables to match your Aiven CIDR settings.

</TabItem>
<TabItem value="cli" label="Aiven CLI">

</TabItem>
<TabItem value="api" label="Aiven API">

</TabItem>
</Tabs>

## Delete a peering connection
<!--
:::important
- Before deleting an organization VPC, move all services out of this VPC.
- Once an organization VPC is deleted, the cloud-provider side of the peering connections
becomes `inactive` or `deleted`.
:::
Delete an organization VPC using a tool of your choice:
<Tabs groupId="group1">
<TabItem value="console" label="Aiven Console" default>
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, find a VPC to be deleted and click
<ConsoleLabel name="actions"/> > <ConsoleLabel name="delete"/>.
1. In the **Confirmation** window, click **Delete VPC**.
</TabItem>
<TabItem value="cli" label="Aiven CLI">
Run
```bash
avn organization vpc delete
--organization-id $org_id
--vpc-id 17528694-efb4-4f97-97e8-8bb4c7d31fee
```
</TabItem>
<TabItem value="api" label="Aiven API">
</TabItem>
</Tabs>
-->
## Related pages

- [VPCs in Aiven](/docs/platform/concepts/vpcs)
- [VPC peering in Aiven](/docs/platform/howto/list-vpc-peering)
- [Manage organization VPCs](/docs/platform/howto/manage-organization-vpc)
<VpcPeeringAws/>
2 changes: 1 addition & 1 deletion docs/platform/howto/manage-org-vpc-peering-azure.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Manage organization VPC peering with Azure
sidebar_label: Peer org VPCs with Azure
sidebar_label: Peer organization VPCs with Azure
---

import ConsoleLabel from "@site/src/components/ConsoleIcons";
Expand Down
2 changes: 1 addition & 1 deletion docs/platform/howto/manage-org-vpc-peering-google.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Manage organization VPC peering with Google Cloud
sidebar_label: Peer org VPCs with Google
sidebar_label: Peer organization VPCs with Google
---

import ConsoleLabel from "@site/src/components/ConsoleIcons";
Expand Down
2 changes: 1 addition & 1 deletion docs/platform/howto/manage-org-vpc-peering-upcloud.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Manage organization VPC peering with UpCloud
sidebar_label: Peer org VPCs with UpCloud
sidebar_label: Peer organization VPCs with UpCloud
---

import ConsoleLabel from "@site/src/components/ConsoleIcons";
Expand Down
10 changes: 10 additions & 0 deletions docs/platform/howto/manage-pj-vpc-peering-aws.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Manage project VPC peering with AWS
sidebar_label: Peer pj VPCs with AWS
---

import VpcPeeringAws from "@site/static/includes/manage-vpc-peering-aws.md"

Set up a peering connection between your Aiven project VPC and an AWS VPC.

<VpcPeeringAws/>
62 changes: 62 additions & 0 deletions docs/platform/howto/org-vpc-peering-aws.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
title: Set up an organization VPC peering with AWS
sidebar_label: Peer org VPCs with AWS
---

import ConsoleLabel from "@site/src/components/ConsoleIcons"

Set up a peering connection between your Aiven project VPC and an AWS VPC.

## Prerequisites

- [Organization admin role](/docs/platform/concepts/permissions#organization-roles-and-permissions) to manage organization VPCs
- 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 AWS account
- One of the following tools for VPC peering operations:
- [Aiven Console](https://console.aiven.io/)
- [Aiven CLI](/docs/tools/cli)
- [Aiven API](/docs/tools/api)

## Create a peering connection

### Collect data in the AWS Console

1. Log in to the [AWS Management Console](https://console.aws.amazon.com) and go to your
profile information.
1. Find and save your account ID.
1. Go to the VPC service: **All services** > **Networking & Content Delivery** > **VPC**
\> **Your VPCs**.
1. Find a VPC to peer and save its ID.
1. Find and save a cloud region that the VPC is located in.

### 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:
- **AWS account ID**
- **AWS VPC region**
- **AWS VPC ID**
1. Click **Add peering connection**.

This adds a connection pending acceptance in your AWS account.

### Accept the peering request in the AWS Console

1. Log in to the [AWS Management Console](https://console.aws.amazon.com), and go to the
VPC service (**All services** > **Networking & Content Delivery** > **VPC**).
1. Click **Peering connections** in the sidebar.
1. Find and select the peering request from Aiven, and click **Actions** > **Accept request**.
1. Create or update your [AWS route
tables](https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-routing) to match
your Aiven CIDR settings.

When you accept the request in your AWS account, the peering connection gets
activated in the [Aiven Console](https://console.aiven.io/).
87 changes: 50 additions & 37 deletions docs/platform/howto/vpc-peering-aws.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,60 @@
---
title: Set up VPC peering on AWS
title: Set up a project VPC peering with AWS
sidebar_label: Peer project VPCs with AWS
---

import ConsoleLabel from "@site/src/components/ConsoleIcons"

Learn how to set up VPC peering on AWS.
Set up a peering connection between your Aiven project VPC and an AWS VPC.

## Prerequisites

Create a
[VPC on the Aiven platform](/docs/platform/howto/manage-project-vpc).

## Set up VPC peering

1. Open your AWS Console.

1. Go to **My Account** and make note of your account ID.

1. Go to the VPC service to find the VPC to connect and copy its ID.

1. In [Aiven Console](https://console.aiven.io/), select **VPCs** from
the sidebar on the **Services** page.

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

1. On the **VPC Peering connections** page, enter your AWS account ID
and VPC ID, select the region for your AWS VPC, and select **Add
peering connection**.

:::note
A new connection with the **Pending Acceptance** status
is added in your AWS Console.
:::

1. In your AWS Console, ensure the account ID and VPC ID match
those listed in the [Aiven Console](https://console.aiven.io/) and,
if so, click <ConsoleLabel name="actions"/> > **Accept Request**.

1. Update [your AWS route
tables](https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-routing)
to match your Aiven CIDR settings.

When you accept the request in AWS Console, the peering connection gets
- [Project operator role](/docs/platform/concepts/permissions#project-roles-and-permissions) to manage project VPCs
- Two VPCs to be peered: a
[project VPC](/docs/platform/howto/manage-project-vpc)
in Aiven and a VPC in your AWS account
- One of the following tools for VPC peering operations:
- [Aiven Console](https://console.aiven.io/)
- [Aiven CLI](/docs/tools/cli)
- [Aiven API](/docs/tools/api)

## Create a peering connection

### Collect data in the AWS Console

1. Log in to the [AWS Management Console](https://console.aws.amazon.com) and go to your
profile information.
1. Find and save your account ID.
1. Go to the VPC service: **All services** > **Networking & Content Delivery** > **VPC**
\> **Your VPCs**.
1. Find a VPC to peer and save its ID.
1. Find and save a cloud region that the VPC is located in.

### Create a peering in Aiven

Create a project VPC peering connection in [Aiven Console](https://console.aiven.io/):

1. Log in to the [Aiven Console](https://console.aiven.io/), and go to your project page.
1. Click <ConsoleLabel name="vpcs"/> in the sidebar.
1. On the **Virtual private clouds** page, select a project VPC to peer.
1. On the **VPC peering connections** page:
1. Enter the following:
- **AWS account ID**
- **AWS VPC region**
- **AWS VPC ID**
1. Click **Add peering connection**.

This adds a connection pending acceptance in your AWS account.

### Accept the peering request in the AWS Console

1. Log in to the [AWS Management Console](https://console.aws.amazon.com), and go to the
VPC service (**All services** > **Networking & Content Delivery** > **VPC**).
1. Click **Peering connections** in the sidebar.
1. Find and select the peering request from Aiven, and click **Actions** > **Accept request**.
1. Create or update your [AWS route
tables](https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-routing) to match
your Aiven CIDR settings.

When you accept the request in your AWS account, the peering connection gets
activated in the [Aiven Console](https://console.aiven.io/).
1 change: 1 addition & 0 deletions sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ const sidebars: SidebarsConfig = {
'platform/howto/vnet-peering-azure',
'platform/howto/vpc-peering-upcloud',
'platform/howto/manage-org-vpc-peering-aws',
'platform/howto/manage-pj-vpc-peering-aws',
'platform/howto/manage-org-vpc-peering-azure',
'platform/howto/manage-org-vpc-peering-google',
'platform/howto/manage-org-vpc-peering-upcloud',
Expand Down
Loading

0 comments on commit c4146d6

Please sign in to comment.