VPC peering
VPC peering is a way to connect two different VPCs within the same region for routing traffic between them using IPv4 or IPv6 addresses. Once a VPC peering connection is established between two VPCs, instances in either of these VPCs can communicate with each other as they communicate with local instances within the same VPC.
By default, network traffic either flows within the same VPC or to and from the internet, but it does not route to other VPCs. If there is a need to route traffic between two VPCs, a VPC peering connection can be established. VPC peering can be used between two VPCs within the same region, irrespective of whether they belong to the same AWS account or a different AWS account. Communication among peered VPCs takes place through routing. Network traffic does not flow through any separate VPC resources such as gateway or VPN connections.
Let us understand following critical points for enabling VPC peering:
- The owner of VPC1 initiates a peering request for VPC2...