How can I create a VPC peering connection between two VPCs?
Last updated: 2022-03-22
How can I create an Amazon Virtual Private Cloud (Amazon VPC) peering connection between two VPCs?
You can create a VPC peering connection between two VPCs in the same or different AWS accounts and Regions. The VPC peering connection allows you to communicate between hosts using private IPv4 or the IPV6 addresses. VPC peering uses the AWS infrastructure. VPC peering isn't a gateway or a VPN connection, and doesn't rely on a separate piece of physical hardware.
Important: Before proceeding, review the following:
Create VPC peering from the Amazon VPC console
- Open the Amazon VPC console.
- In the left navigation pane scroll down and click on peering connection.
- Click on Create peering connection.
- Once the peering connection is active we can proceed to update the route tables to enable traffic to traverse over the peering connection.
Create VPC peering using AWS CLI
Note: If you receive errors when running AWS Command Line Interface (AWS CLI) commands, make sure that you're using the most recent version of the AWS CLI.