Menu

1 / 7

AWS VPC Peering Between Two Different VPCs: Step-by-Step Practical Guide

DEV Community: cloud·Marrikommadinne Sumanth·3 days ago
#1PbJKv97
#devtocloud#devto#dev#create#peering
Long article (277 words) — no AI summary yet.
Reading 0:00
15s threshold

Step 1: Create Two VPCs

First, create two separate VPCs in the AWS Management Console.and

im going with vpc&more option.by using this option at a time it creates

private and public subnets, internet gateway and routetable.

->Create VPC-1 with CIDR block 10.0.0.0/16.

->Create VPC-2 with CIDR block 20.0.0.0/16

Make sure both VPCs are created in the required AWS Region

Step 2: Create a VPC Peering Connection

Open the AWS VPC Console.

Navigate to Peering Connections.

Click Create Peering Connection.

Select VPC-1 as the Requester VPC.

Select VPC-2 as the Accepter VPC.

Click Create Peering Connection.

Step 3: Accept the Peering Request

Open Peering Connections.

Select the newly created connection.

Choose Actions.

Click Accept Request.

Verify that the status changes to Active.

Step 4: Update Route Tables

Update the route tables associated with the subnets containing your EC2 instances.

In VPC-1:

Destination: 20.0.0.0/16

Target: VPC Peering Connection ID

In VPC-2:

Destination:…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.