1. Home
  2. Training Library
  3. AWS Networking and Virtual Private Cloud (VPC) (ANS-C01)

VPC Peering for Inter- and Intra-Regional Communication

Contents

keyboard_tab
VPC Fundamentals
2
What is a VPC?
PREVIEW2m 25s
VPC Security and Control
VPC Connectivity
VPC Sharing using the AWS Resource Access Manager
Feature Spotlight:

Instructor: Mike Brown

VPC Peering for Inter- and Intra-Regional Communication

In this lesson we will discuss using VPC peering for Inter and Intra regional communication.

Although we can use techniques such as Site-to-Site VPNs to connect our AWS VPCs together there are significant drawbacks to this approach. Drawbacks such as:

  1. Device Management - You will need to deploy at least one virtual appliance to create your site-to-site VPN. You will be responsible for the high availability of this device and there will also be a cost for this device.

  2. 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.

  3. Bandwidth Bottlenecks - Because you are using a virtual appliance, the virtual appliance can become a bandwidth bottleneck due to max bandwidth limits for EC2 instances.

  4. Data out charges - You will be charged for data leaving the region.

VPC Peering removes most of these drawbacks.

VPC Peering

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 intercepted.

  • Traffic traversing a VPC peering connection is always encrypted.

  • When using VPC peering there is no device for you to manage, there is no single point of failure and no bandwidth bottleneck.

  • There is no charge for the VPC peering connection 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 the VPCs are:

  • In the same regions

  • In different regions

  • In the same AWS account

  • 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 other VPC Peering characteristics worth noting:

  • 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 can not 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 routing environment is, then the more likely you are to use Transit Gateways.

 

Difficulty
Advanced
Duration
2h 44m
Students
178
Ratings
5/5
starstarstarstarstar
Description

In this section of the AWS Certified Advanced Networking - Specialty learning path, we introduce you to the various networking and VPC services currently available in AWS that are relevant to the ANS-C01 exam.

Learning Objectives

  • Identify and describe the various networking services available in AWS
  • Describe how to configure an Amazon Virtual Private Cloud (VPC)
  • Understand how to control network traffic via Security Groups and Network Access Control Lists (NACLs)
  • Describe options for VPC connectivity, subnets, and routing
  • Understand how to share VPC resources using the AWS Resource Access Manager (RAM)
  • Identify how to evaluate the configuration of VPC resources using the VPC Reachability Analyzer

Prerequisites

The AWS Certified Advanced Networking - Specialty certification has been designed for anyone with experience designing, implementing, and operating complex AWS and hybrid networking architectures. Ideally, you’ll also have some exposure to the nuances of AWS networking, particularly regarding the integration of AWS services and AWS security best practices. Many exam questions will require advanced level knowledge of many AWS services, including AWS networking services. The AWS Cloud concepts introduced in this course will be explained and reinforced from the ground up.

About the Author
Students
207743
Labs
1
Courses
211
Learning Paths
163

Stuart has been working within the IT industry for two decades covering a huge range of topic areas and technologies, from data center and network infrastructure design, to cloud architecture and implementation.

To date, Stuart has created 150+ courses relating to Cloud reaching over 180,000 students, mostly within the AWS category and with a heavy focus on security and compliance.

Stuart is a member of the AWS Community Builders Program for his contributions towards AWS.

He is AWS certified and accredited in addition to being a published author covering topics across the AWS landscape.

In January 2016 Stuart was awarded ‘Expert of the Year Award 2015’ from Experts Exchange for his knowledge share within cloud services to the community.

Stuart enjoys writing about cloud technologies and you will find many of his articles within our blog pages.