How to Setup AWS VPC Peering Connections: A Step-By-Step Guide
Step 1: Navigate to VPC Dashbaord
- Sign in to your AWS account with your credentials.
- After Navigate to Console, you look into the following Console Home Page:
- Select the VPC service in the search box.
Step 2: Create Virtual Private Network
- Create 2 VPC networks with names myvpc1 and myvpc2.
- Firstly, Click on the Create VPC button to create VPC.
- Configure the VPC details as shown in the below screenshot.
- Similarly define and create second vpc with name myvpc2. Ensure that the CIDR of myvpc1 and myvp2 doesnât overlay.
Step 3: Select âPeering Connectionsâ
- Navigate to VPC Peering, and click on create VPC peering button.
- Provide the accepter VPC name and receiver VPC name.
Step 3: Click âCreate Peering Connectionâ
- After creating the vpc peering connection, it will be in pending status .
Step 4: Accept Peering Connection
- Now, from the myvpc2 aws account, go to vpc peering dashboard, click on the accept request and accept the peering connection.
Step 5: Successful VPC Peering Connection
- After once the myvpc2 network accepts the request, the VPC peering connection will become active in status.
Step 6: Update Route Tables ( if necessary )
- Ensure that the route tables for both VPCs are updated to include routes for each otherâs CIDR blocks, pointing to the peering connection.
Step 7: Verify Connectivity
- Now, Create an instance on each vpc and try on pinging the private IP of instance on each other instance.
- If they are successfully pinging then you have established VPC peering successfully.
Sometimes we need to allow resources in different VPCs to exchange data based upon the architecture of the service. Regardless of any specific need, using VPC peering is a great way of extending your VPC design.
Note: When you start to have a lot of peering connections between multiple VPCs, in multiple regions, across multiple AWS accounts, managing the connections. When it starts to get difficult, it is time to start looking at moving the existing peering connections to Transit Gateway and managing the connections there.
Amazon VPC â Concept of VPC Peering
Amazon peering provides an effective way of linking Virtual Private Clouds ( VPCs ) and offers strong networking capabilities inside AWS. In this Article, the complexities of VPC peering are addressed with an effective way of explanation. This Article clarifies how to establish smooth communication across different cloud environments in AWS.
Contact Us