Shrestha Rajat

Search

Search IconIcon to open search

Last updated Jul 9, 2023 Edit Source

# VPC Peering

#aws #cloud #networking

It allows internal connection between VPCs in AWS Using the AWS Global infrastructure.

# Demo:

To create a simple VPC peering connection between two accounts, make two VPC with different root CIDRs (so that the IPs do not collide). Then peer it and you can access the instances in one VPC from another.

# Steps:

  1. Create two different VPCs with different CIDR blocks.
  2. Create a VPC peering request from one VPC to another
  3. Accept the VPC peering connection
  4. Configure the route table to accept the root CIDRs of each VPC by setting the opposite VPC CIDR block as destination and VPC peering interface as Target. (Do on both ends)
  5. Now you can access the resources on the opposite VPC.