VPC Peering Connection¶
A VPC peering connection is a networking connection that connects two VPCs for them to communicate using private IP addresses. The VPCs to be peered can be in the same account or different accounts, but must be in the same region.
You can use VPC peering connections to build networks in different scenarios. For details, see VPC Peering Connection Usage Examples.
Figure 1 shows an application scenario of VPC peering connections.
There are two VPCs (VPC-A and VPC-B) in region A that are not connected.
Service servers (ECS-A01 and ECS-A02) are in VPC-A, and database servers (RDS-B01 and RDS-B02) are in VPC-B. The service servers and database servers cannot communicate with each other.
You need to create a VPC peering connection (peering-AB) between VPC-A and VPC-B so the service servers and database servers can communicate with each other.
For details about VPC peering connections, see VPC Peering Connection.