- 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.
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.
Creating an AWS VPC Peering Connection
To create an AWS VPC Peering connection:- In CoPilot, navigate to Networking > Connectivity > Native Peering tab, and click + Native Peering.
- For Cloud type, select AWS, you can use the dropdown menu to select Standard, GovCloud, or China.
- 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.
-
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.
-
Do the same for the other VPC with which to create the peering.
- 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.
- Click Save.
Deleting an AWS VPC Peering Connection
To delete an AWS VPC peering connection:- In CoPilot, navigate to Networking > Connectivity > Native Peering tab.
- In the table, locate the connection you want to delete and click the Delete icon on the right side of its row.
- To delete the peering connection, click Delete to delete the selected peering connection.
To delete native peering of an HPE connection, delete the gateway attachment.Refer to the following to delete a gateway attachment: