VPC Peering
A networking connection that allows you to route traffic between two Virtual Private Clouds (VPCs) using private IP addresses.
Description
VPC Peering is an AWS feature that enables you to connect two Virtual Private Clouds (VPCs) in the same region or across different regions, allowing resources in each VPC to communicate with each other as if they are within the same network. This connection facilitates seamless private communication without the need for internet gateways, VPNs, or NAT devices. VPC Peering is useful for organizations that require data sharing and resource access between different AWS accounts or between different departments within the same organization. It is important to note that VPC Peering connections are non-transitive, meaning that if VPC A is peered with VPC B, and VPC B is peered with VPC C, VPC A cannot communicate directly with VPC C through VPC B. Additionally, VPC Peering does not support overlapping CIDR blocks, so careful planning of IP address ranges is crucial when establishing peering connections.
Examples
- A company has separate VPCs for its production and development environments and establishes VPC Peering to allow developers to access production data securely.
- An organization uses VPC Peering to connect its VPC in the US West region with another VPC in the US East region to enable cross-region application performance optimizations.
Additional Information
- VPC Peering is billed based on the data transferred over the peering connection.
- Security groups and network access control lists (ACLs) can be used to control traffic between the peered VPCs.