How to configure VPC peering in AWS?
Normally network traffic blocked between VPCs.A VPC peering connection is a networking connection between two VPCs that enables you to route traffic between them using private IP addresses.
You can create a VPC peering connection between your own VPCs, or with a VPC in another AWS account. In both cases, the VPCs must be in the same region.
In this article we will see 2 scenarios , First create a VPC peering connection within same AWS accout , and other scenario is creating VPC peering with another AWS account VPC.
Remember VPC address should not overlap
1.VPC Peering with same account same region. Now we have 2 VPCs findout-prod 10.0.0.0/16 and findout-dev 184.108.40.206/16.Now lets create VPC peering between these 2 VPCs.
In VPC Dashboard . Already VPC created.
In VPC dashboard select peering connection
Click “create Peering connection”
Select findout-dev as requester . That you can choose.
Click Create peering connection . Now VPC peering has been created.
Here you can find all the detail about peering connection.
Note : Here Requester and Accepter are same AWS account.But still you need to accept since different VPCs.
Click Yes , Accept request
Now the status vpc peering connection status turned to active . Once you make entry in route table 10.0.0.0/16 network can communicated with 220.127.116.11/16 network
All the steps are same except one field. Instead of my account select Another AWS account and enter AWS account ID .
Thats all! Thanks.