AWS — VPC Peering Connect VPCs

Tony Fu - OSCP, AWS SAP
4 min readNov 12, 2023

The article delves into the interconnections between VPCs . In network architecture, the standard practice is to design different subnets for various purposes or departments. Initially, VPCs are isolated from other private networks in AWS, meaning default there’s no connection between VPCs.

A common approach to the design involves creating two distinct VPCs, allowing for increased flexibility in configuring access control between them. For now, the focus will be solely on VPC peering between these VPCs. The diagram below illustrates two VPCs, VPC-Demo-A and VPC-Demo-B. Our aim is to establish VPC peering between them and explore the necessary steps for this configuration.

Let’s break this down into a clear, step-by-step guide for VPC creation and setup:

  1. Create VPC

First of all, we will go forward to create the VPC. Start by creating the VPC named “VPC-Demo-A” with a manually input CIDR of 10.100.0.0/16. Remember, the CIDR block size must fall between /16 and /28.

After successfully creating the VPC, establish the main route and main network ACL and associate them with the VPC. Repeat the same process to create “VPC-Demo-B”.

--

--

Tony Fu - OSCP, AWS SAP

Extensive experience as network engineer and cybersecurity engineer, interest in automation, simplifying architecture, and innovating with new technologies.