VPC Peering for Inter- and Intra-Regional Communication


Course Introduction
VPC Fundamentals
What is a VPC?
PREVIEW16m 20s
VPC Security and Control
VPC Connectivity
Introduction to AWS PrivateLink
VPC Sharing using the AWS Resource Access Manager
Understanding Direct Connect, Implementation and Configuration
Why Direct Connect?
5m 25s
Understanding AWS Direct Connect - Connectivity Options
7m 3s
Examining AWS Routing
AWS Default Routing

The course is part of this learning path

Start course
3h 55m

This section of the AWS Certified Solutions Architect - Professional learning path introduces you to the core networking concepts and services relevant to the SAP-C02 exam. We start with an introduction to the AWS Virtual Private Network (VPC) and networking services. We then understand the options available and learn how to select and apply AWS networking, DNS, and content delivery services to meet specific design scenarios relevant to the AWS Certified Solutions Architect - Professional exam. 

Want more? Try a Lab Playground or do a Lab Challenge

Learning Objectives

  • Get a foundational understanding of VPCs, their security, and connectivity
  • Learn about VPC sharing using the AWS Resource Access Manager
  • Discover inter-regional and intra-regional communication patterns in AWS
  • Learn about AWS Direct Connect, along with its implementation, configuration, and connectivity options
  • Understand routing in AWS, including static and dynamic routing
  • Understand the basics of networking, including Elastic IP addresses, Elastic Network Interfaces, networking with EC2, VPC endpoints, and AWS Global Accelerator
  • Learn about the DNS and content delivery services Amazon Route 53 and Amazon CloudFront

In this lesson, we will discuss Using VPC Peering for Inter and intra-Regional Communication. Although we can use technologies such as site-to-site VPNs to connect our AWS VPCs together, there are significant drawbacks of this approach. Drawbacks such as device management; you will need to deploy at least one virtual appliance to create your site-to-site VPN. You'll be responsible for the high availability of this device and there'll also be a cost for this device. Data flowing through the Internet; because you are creating a site-to-site VPN, your traffic will travel across public networks and be susceptible to delay and potential attack.

Bandwidth bottlenecks; because you are using a virtual appliance, the virtual appliance can become a bandwidth bottleneck due to the max bandwidth limits for EC2 instances. Data out charges; you'll be charged for data leaving the region. VPC peering removes most of these drawbacks. VPC peering is used to connect a pair of VPCs into a single routing domain.

VPC peering can be used to peer VPCs in the same or different regions. When using VPC peering, traffic traversing a VPC peering connection always stays on the AWS Backbone, reducing the likelihood of your data being accepted. Traffic traversing a VPC peering connection is always encrypted, and when using VPC peering, there is no device for you to manage, there is no single point of failure, and no bandwidth bottlenecks. There is no charge for the VPC peering connection itself, but there is a data charge for data traversing the VPC peering connection. A VPC peering connection is only used to peer a pair of VPCs. VPC peering does not care whether VPCs are in the same region, in different regions, in the same AWS account, or in different AWS accounts. One big rule for us to remember, in order to peer a pair of VPCs using VPC peering, the VPCs must use non-overlapping IP ranges. Two of VPC peering characteristics worth knowing: VPC peering connections are non-transitive. If VPC A and VPC B are peered, and VPC B and VPC C are peered, VPC A and VPC C are not.

In order to route traffic between VPC A and VPC C, you could peer the VPCs directly with each other. Peered VPCs cannot share Internet gateways or virtual private gateways. If you have multiple VPCs that need to connect to the Internet or to on-premises, then they must have their own gateways or connect using transit gateway. VPC peering works really well when you have a small number of VPCs to interconnect. But as your number of VPCs grow, the more VPCs that you have that need to connect to on-premises and the Internet, the more complex your route environment is, then the more likely you are to use transit gateways.


About the Author
Learning Paths

Danny has over 20 years of IT experience as a software developer, cloud engineer, and technical trainer. After attending a conference on cloud computing in 2009, he knew he wanted to build his career around what was still a very new, emerging technology at the time — and share this transformational knowledge with others. He has spoken to IT professional audiences at local, regional, and national user groups and conferences. He has delivered in-person classroom and virtual training, interactive webinars, and authored video training courses covering many different technologies, including Amazon Web Services. He currently has six active AWS certifications, including certifications at the Professional and Specialty level.