From the course: VPC Networking: Designing a Software Defined Data Center on AWS

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

VPC peering

VPC peering

- [Instructor] If you have an application hosted in a VPC at AWS, perhaps you're going to run into a situation where another developer has another VPC with an application, or a service that you want access to. So how can I connect VPCs together? Well, I use a peer, a networking connection between two VPCs. So, when I'm peering VPCs at AWS, there are some rules. It's a one-to-one relationship between the source VPC and the selected destination VPC. So the connections are not going to be a transitive connection, they're direct one-to-one. We might run into issues peering VPCs if you didn't pay attention, or you just ran into a situation where the CIDR blocks for each VPC are exactly the same. Because the blocks, the IP addresses can't overlap, otherwise, how would the packets know where to go? Now, the good news with a VPC is you can add multiple CIDR blocks to a VPC, and potentially get around the problem when it occurs. Any traffic that goes across a peer is going to be charged. So…

Contents