Geek Culture
Published in

Geek Culture

VPC Connection — Same Region

Photo by Thomas Jensen on Unsplash

Often times, one logical group of virtual network (VPC) in AWS would want to interact with the other. AWS has provided options to connect between VPCs of the same region and also different regions.

VPC Peering is a networking connection provided by AWS to connect two VPCs. The VPCs can be from the same or different accounts. Since VPC is a region based entity, VPC Peering can also be established between VPCs from different regions in the same account. Once the peering is established, the instances in either of the VPCs can connect with each other as if they are in the same account.

To create a Peering Connection, go to VPC dashboard and click on Create Peering Connection. The wizard looks like as below. We need to provide the local VPC which we are interested to peer with and its CIDR block. If we are connecting to the same region in the same account, then we can select My Account and This region and provide the VPC and its CIDR to be connected to.

Create Peering Connection — AWS Console

After creating, the peering connection looks like below, and shows the peering connection status as Active.

Peering Connection Config

The next step after creating the VPC peering connection is to update the route table of the subnets in both the VPCs.

Peering Connection — Route Table

VPC peering is a one-to-one connection between VPCs. So, to connect to another VPC, another peering connection has to be created and the route tables to be updated.

Peering Connection -Multiple VPCs

If VPC A has a connection with VPC B and VPC C, this does not mean that a peering connection is automatically available between VPC B and VPC C. Another peering connection has to be created to establish this relationship.

VPC Peering — No Automatic Connection

Things to know

  • VPC Peering allows to reference security groups from the peer VPC in the same region.
  • Supports DNS hostname resolution to return private IP address.
  • Supports peering of both IPv4 and IPv6 addresses.
  • The VPCs cannot have overlapping IP addresses.
  • No redundant Peering connection can be made between the same VPCs. Only one peering connection is supported.

Can you answer the following questions?

  1. Can NACL be accessed among VPCs?
  2. How to health check the VPC Peering Connection?

Originally published at




A new tech publication by Start it up (

Recommended from Medium

Top 25 Massive Data Breaches in 2020 – Breach Calendar

Some Ways of Unblocking the Internet with and without a private Proxy

What is Cybersecurity and How to Learn it?

OverTheWire Bandit Level 15–16

Automate Let’s Encrypt Wildcard Certificate creation with Ionos DNS Rest API

I Got Blackmailed — How I Managed My Situation

My Diamond Team after 47 days' earnings! It is earning totally passive BNB!

The 5 Best Free Proxy Lists for Web Scraping

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pradheepa P

Pradheepa P

Backend Engineer, Cloud Practitioner

More from Medium

AWS Monitoring Walkthroughs: Config vs CloudTrail vs CloudWatch

Why do we need to move our web apps & apps to the cloud?

A Practical Guide to Make DevSecOps an Automated Reality

Connecting Robo 3T with DocumentDB outside AWS VPC.