Today I am going to share what I learnt in AWS VPC Peering.
What is VPC Peering?
As per AWS documentation, "Amazon Virtual Private Cloud (Amazon VPC) enables you to launch AWS resources into a virtual network that you've defined.
A VPC peering connection is a networking connection between two VPCs that enables you to route traffic between them using private IPv4 addresses or IPv6 addresses. Instances in either VPC can communicate with each other as if they are within the same network. You can create a VPC peering connection between your own VPCs, or with a VPC in another AWS account. The VPCs can be in different regions (also known as an inter-region VPC peering connection)."

How to Create Peering Connection/VPC Peering?
Before Creating a VPC Peering connection we need to understand the requirements for peering connections.
- If VPC Peering need to be done for VPC's in same account?
- If peering connection to be created for different accounts then Account ID is required
- Details of the VPC's to be peered
- Region for the VPC's to be peered
- Which VPC to be taken as Source VPC
If we have above details then peering connection for VPC will be easier.
Below section will provide glimpse on VPC Peering Connections for same account and different accounts