Set up VPC Peering


By default, VPCs inside AWS Cloud are separate and cannot communicate directly with each other. In this exercise, you will proceed to establish a VPC Peering connection between two VPCs so that the resources inside those two VPCs can communicate directly with each other. As a result, the communication between the two VPCs does not need to go through the public Internet anymore, contributing to increasing the security of the VPC.

You will create the following architecture for the exercise:

VPC Peering

VPC Peering Connection

A VPC Peering connection is a network connection between two VPCs that allows you to route traffic between them using IPv4 or IPv6 private addresses. Instances in either VPC can communicate with each other as if they were on the same network.

VPC Peering

Network Access Control List (Network ACL)

You’ve had a lot of practice with Security Groups - a kind of stateful firewall at the resource level. In this article, you will use Network ACL - a form of the stateless firewall at the subnet level (subnet-level). Specifically, Network ACLs can only be assigned to the subnet, but not to each Instance within the subnet.

Cross-Peering DNS

Cross-Peering DNS is a feature of VPC Peering that allows resources within one VPC to resolve the DNS of another VPC resource.

Convention: VPC default = VPC 1; HG VPC = VPC 2.


  1. Introduction
  2. Preparation
  3. Update Network ACL
  4. Create Peering Connection
  5. Create Route tables
  6. Cross-Peer DNS Solution