# VPC Peering Connection with Confluent Cloud

This document describes how to create a VPC peering connection between EMQX Cloud and Confluent Cloud to enable private network communication between your EMQX Cloud deployment and the Confluent Cloud cluster.

## Create a VPC Peering Connection

After the Confluent Cloud cluster has been created, you can add peering by referring to the following steps:

1. Navigate to **Network Management** in your Confluent Cloud environment.

2. Select the **For dedicated cluster** tab.

3. Select the network associated with the dedicated cluster you want to connect to. Under the **Ingress connections** column, click the button to create a new peering connection.

   ![confluent_vpc_peering1](./_assets/confluent_vpc_peering1.png)

4. Enter the VPC details from EMQX Cloud.

   You can get the information from the **Network Management** -> **VPC Peering Connection** section of your deployment in the EQMX Cloud Console.

   ![vpc_info](./_assets/aws_vpc_peering.png)

5. Once the peering is added in Confluent, go to the **Network Overview** page and copy the `Confluent Cloud VPC ID`.

   ![confluent_vpc_peering2](./_assets/confluent_vpc_peering2.png)

6. Return to the EMQX Cloud console. Enter the **Confluent Cloud VPC ID** you just copied and click **Confirm**. When the status changes to **Running**, the VPC peering connection is successfully established.

   ![vpc](./_assets/aws_vpc_peeing_status.png)

## Delete a VPC Peering Connection

To delete a peering connection, you need to ensure that the status of the peering connection is **Running**.

::: tip

Before deleting the peering connection, please make sure that there are no associated resources in the deployment; otherwise, there will be unpredictable risks

:::

1. Go to the VPC Peering Connection area on the Network Management page.

   ![vpc-list](./_assets/aws_vpc_peeing_status.png)

2. Click the "delete" icon in the **Actions** column of the peering connection.

   ![vpc-delete](./_assets/aws_vpc_peering_delete.png)