AWS VPC Peering (original) (raw)

Last Updated : 29 May, 2026

VPC Peering is a networking connection between two VPCs that enables you to route traffic between them using private IPv4 or IPv6 addresses. Instances in either VPC can communicate with each other as if they were within the same network.

aws_cloud

It is the simplest way to connect two VPCs, whether they are in the same AWS account or different accounts, and even across different AWS Regions.

How VPC Peering Works

When you peer two VPCs (let's call them VPC A and VPC B), you create a direct network route between them.

Architecture

VPC Peering is strictly a 1:1 relationship. This is its most critical architectural feature.

AWS VPC Peering Connection Lifecycle

The lifecycle of an AWS VPC Peering connection includes several stages:

How VPC Peering Works

Multiple VPC Peering connections help organizations build flexible cloud networks by connecting different VPCs for communication and resource sharing.

2

These VPCs can be in different regions and are hence known as inter-region VPC Peering connections.

How to Setup AWS VPC Peering Connections: A Step-By-Step Guide

Step 1: Navigate to VPC Dashboard

Login-Console

Console-Home-page

Select-Vpc-From-Search-box

Step 2: Create Virtual Private Network

Create-VPC

Configuring-test-vpc-1

Creating-test-vpc-1

create-second-vpc

Step 3: Select "Peering Connections"

Navigate-To-VPC-Peering

accepter-VPC-name-and-receiver-VPC-name

Step 3: Click "Create Peering Connection"

Create-Peering-Connection

Step 4: Accept Peering Connection

Accept-Peering-Connection-1

Accept-Peering-Connection2

Step 5: Successful VPC Peering Connection

Successful-VPC-Peering-Connection

Step 6: Update Route Tables (if necessary)

Modifying-route-table-for-VPC1

Modifying-route-table-for-VPC2

Step 7: Verify Connectivity

Verify-Connectivity

Sometimes we need to allow resources in different VPCs to exchange data based upon the architecture of the service. Regardless of any specific need, using VPC peering is a great way of extending your VPC design.

**Note: When managing many VPC Peering connections becomes complex, **AWS Transit Gateway can be used to simplify connectivity management.

VPC Peering vs. Transit Gateway

This is the classic "Build vs. Buy" networking decision.

**Feature **VPC Peering **AWS Transit Gateway
**Topology Mesh (Point-to-Point). Hub-and-Spoke (Central Router).
**Transitive No. A cannot talk to C via B. Yes. A talks to C through the Gateway.
**Management Decentralized. Hard to manage at scale (10+ VPCs). Centralized. Easy to manage hundreds of VPCs.
**Bandwidth Unlimited (limited only by instance type). 50 Gbps per attachment.
**Latency Lowest (Direct path). Slightly higher (Extra hop).
**Cost Low (Data transfer only). High (Hourly attachment fee + data processing).

Use VPC Peering for simple, high-bandwidth connections between 2-3 VPCs (e.g., App <-> DB). Use Transit Gateway for enterprise networks connecting dozens of VPCs and on-premises VPNs.

AWS VPC Peering Latency and Bandwidth

AWS VPC Peering provides low-latency communication between connected VPCs, especially when they are in same AWS region.

AWS VPC Peering connections offers scalable and high-bandwidth communication between peered VPCs. The bandwidth between the AWS VPCs depends on type of instances and its network capabilities of communication. Direct Connect and VPN are used for on-premises connectivity, not for increasing bandwidth between peered VPCs.

Important Limitations

Pricing for a VPC Peering Connection

The following tabular format discusses the pricing details of VPC Peering:

Component Description Cost
VPC Peering Connection It used for establishment of VPC Peering connection $0.01 per GB
Data Transfer between VPCs It used for transferring the data between VPCs $0.02 per GB
Data Processing If data processing has done in VPC Variable(Charge varies based on many parameters)
Support It used for providing support to VPC Connection Variable(Charge varies based on many parameters

Use Cases