View on GitHub

General Notes

Compilations of General Notes on topics like git, aws, linux, ubuntu, scp, vscode, windows, github.

VPC Peering

Visitors

Creating a Sample Infrastructure for Peering

Refer Instructions with screenshots as reference

Create VPC

Create Public Subnet

Create Private Subnet

Create Public Routing Table

Create Private Routing Table

Associate Public Subnet with Public Route Table

Associate Private Subnet with Private Route Table

Create Internet Gateway

Attach Internet Gateway to VPC

Attach Internet Gateway to VPC

Add IGW To Public Routing Table

Create an EC2 instance with Public Subnet

Then create a Public Security Group with default access for this Public Instance

Create an EC2 instance with Private Subnet

Create Private Subnet Group with access only from Public Instance


Repeat the same steps above for another VPC (preferably different Region)


Lets Create VPC Peering

Create Peering Connection

Accept Request

Update Route Table

Update Route Table

Security Group

Reference

AWS Doc - VPC Peering

Visitors