Create Peering Connection

Create Peering Connection

ℹ️ Information: In this section, you will create a VPC Peering Connection between My VPC and HG VPC.

💡 Pro Tip: VPC Peering allows resources in two different VPCs to communicate as if they are in the same network.

  1. Sign in to AWS Management Console
    • Search for VPC
    • Select VPC

Create VPC Peering

  1. In VPC Management Console, navigate to Peering Connections. Then click Create Peering Connection.

Create VPC Peering

  1. On the Create Peering Connection page, enter the following settings:
    • Peering connection name tag: lab-vpc-peer
    • VPC (Requester): choose My VPC
    • Account: choose My account because both VPCs in the peering connection are in the same account
    • Region: choose This region (ap-southeast-7) because both VPCs in the peering connection are in the same region
    • VPC (Accepter): HG VPC
    • Click Create Peering Connection

Create VPC Peering Create VPC Peering

  1. Complete Create Peering Connection

Create VPC Peering

  1. On the Peering Connections info page, tick the newly created VPC Peering, then click Actions and Accept Request

Create VPC Peering

  1. Choose Accept request

Create VPC Peering

  1. Setup successful

Create VPC Peering

  1. From EC2 - My VPC, try pinging the private IP of EC2 - HG VPC. Ping still fails because we have not configured the VPC route to route traffic between the two VPCs.

Create VPC Peering