# 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:
- Create two different VPCs with different CIDR blocks.
- Create a VPC peering request from one VPC to another
- Accept the VPC peering connection
- 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)
- Now you can access the resources on the opposite VPC.