How can I create a VPC peering connection between two VPCs?

2 minute read
0

How can I create an Amazon Virtual Private Cloud (Amazon VPC) peering connection between two VPCs?

Short description

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:

Resolution

Create VPC peering from the Amazon VPC console

  1. Open the Amazon VPC console.
  2. In the left navigation pane scroll down and click on peering connection.
  3. Click on Create peering connection.
  4. 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.

  1. Follow the AWS CLI command reference create-vpc-peering-connection for steps and examples of different scenarios.
  2. To accept the VPC peering connection use accept-vpc-peering-connection.

Related information

How do I resolve Amazon VPC peering network connectivity issues?

Why can't I create an Amazon VPC peering connection with a VPC in another AWS account?

Amazon VPC FAQs

AWS OFFICIAL
AWS OFFICIALUpdated 2 years ago