> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aviatrix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating AWS VPC Peering Connection

> The Aviatrix Controller integrates native AWS VPC peering to create a peering connection between two VPCs to enable traffic flow between the VPCs privately.

<a id="aws-vpc-peering" />

The Aviatrix Controller integrates native AWS
[VPC peering](https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html)
to create a peering connection between two VPCs to enable traffic flow between
the VPCs privately.

* A VPC peering connection can be created between VPCs within the same AWS
  region (intra-region) or across AWS regions (inter-region), where it is
  available.

* A VPC peering connection can be created between VPCs in the same AWS account
  or in different AWS accounts.

Aviatrix simplifies how to create VPC peering by integrating requester and
acceptor and route table programming into one step. You can also decide which
route table participates in the AWS VPC Peering.

<Note>
  The following limitations apply:

  * You cannot create a peering connection between VPCs that have matching or
    overlapping CIDRs.
  * Transitive peering is not possible with VPC peering.
</Note>

## Creating an AWS VPC Peering Connection

To create an AWS VPC Peering connection:

1. In CoPilot, navigate to **Networking** > **Connectivity** > **Native
   Peering** tab, and click **+ Native Peering**.

2. For **Cloud** type, select **AWS**, you can use the dropdown menu to select
   **Standard**, **GovCloud**, or **China**.

3. From the **VPC/VNet 1** dropdown menu, select the VPC you want to peer.

   The VPCs are listed in the format *VPC\_Name*(*VPC\_ID*) and for each VPC, the
   *cloud account name* and *cloud region* are also shown.

<Tip>
  To locate or display VPCs in the list by a specific cloud account name or
  cloud region, type the cloud account name or cloud region in the VPC/VNet list
  field.
</Tip>

4. You can choose to build the peering for all VPC CIDRs or select custom route
   tables.
   * To build the peering for all VPC CIDRs, leave **Select Route Tables**
     switch **Off** next to the selected VPC.

   * To select custom route tables, turn **Select Route Tables** switch **On**,
     and from **Select Route Tables** dropdown menu, select the route tables(s)
     to peer.

5. Do the same for the other VPC with which to create the peering.
   1. From the **VPC/VNet 2** dropdown menu, select another VPC to peer with.
   * To build the peering for all VPC CIDRs, leave **Select Route Tables**
     switch **Off** next to the selected VPC.

   * To select custom route tables, turn **Select Route Tables** switch **On**,
     and from **Select Route Tables** dropdown menu, select the route tables(s)
     to peer.

6. Click **Save**.

The new AWS VPC Peering connection appears in the table. The name for the
peering connection is auto-generated by CoPilot. You can use the filter to
display additional connection settings.

You can click the peering connection name to display VPC details. The details
for VPC 1 and VPC 2 are shown in their respective columns.

## Deleting an AWS VPC Peering Connection

To delete an AWS VPC peering connection:

1. In CoPilot, navigate to **Networking** > **Connectivity** > **Native
   Peering** tab.
2. In the table, locate the connection you want to delete and click the Delete
   icon on the right side of its row.
3. To delete the peering connection, click **Delete** to delete the selected
   peering connection.

The table shows the updated list of active VPC peering connections.

<Note>
  To delete native peering of an HPE connection, delete the gateway attachment.

  Refer to the following to delete a gateway attachment:

  * <a href={"/docs/enterprise/" + "10.1" + "/reference/ui/cloud-fabric/gateways#view-transit-gateways"}>Deleting a Transit Gateway Attachment</a>
  * [Deleting a Spoke-to-Transit Attachment](https://legacy.docs.aviatrix.com/documentation/latest/network/spoke-gateway-attachments.html?expand=true)
  * [Deleting a Spoke-to-Spoke Attachment](https://legacy.docs.aviatrix.com/documentation/latest/network/spoke-gateway-attachments.html?expand=true)
</Note>
