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

2 minute read
0

I want to create an Amazon Virtual Private Cloud (Amazon VPC) peering connection between two VPCs.

Resolution

Important: Before you create a VPC peering connection, see VPC peering connection networking scenarios and VPC peering limitations.

Use the Amazon VPC console to create VPC peering connection

To use the Amazon VPC console, see Create or delete a VPC peering connection. Under Tasks, choose the type of VPC peering connection that you want to create, and then follow the steps. After the peering connection is active, update the route tables to allow traffic through the peering connection.

Use the AWS CLI to create VPC peering connection

Note: If you receive errors when you run AWS Command Line Interface (AWS CLI) commands, then see Troubleshooting errors for the AWS CLI. Also, make sure that you're using the most recent AWS CLI version.

Run the create-vpc-peering-connection AWS CLI command. Then, run the accept-vpc-peering-connection command to accept the VPC peering connection.

Related information

How do I troubleshoot problems establishing communication over VPC peering?

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

Amazon VPC FAQs

How do I calculate how many bytes are transferred over my VPC peering connection within custom VPC flow logs?

Why can't I resolve domain names over my VPC peering connection?

AWS OFFICIAL
AWS OFFICIALUpdated 2 months ago