Configuring VPC interconnectivity
Often a single VPC will not be enough, and you will find yourself creating separate VPCs for different workloads and applications as well as for different branch offices and locations. Sometimes you may need to share resources with other VPCs. In Chapter 1, Introduction to AWS Accounts and Global Infrastructure, you learned about the concept of hosting an AWS account to manage all shared infrastructure resources. VPCs that belong to other departments or branches of the company may wish to access resources in such shared VPCs. One way to grant access is to establish network connectivity between VPCs.
AWS offers several different options to connect your VPCs to each other, which will be explored next.
VPC Peering
A VPC peering connection is a networking connection between two VPCs where traffic between them takes place over the AWS backbone network using private IP address space. EC2 instances in one VPC can then communicate with resources in...