Tuesday 16 April 2024

The goal of this lab is to illustrate a VPC peering connection, a way to connect two VPCs using a private connection.

 

Architecture Diagram

lab-021-arch-01

Overview

Once the VPCs and subnets are created, the internet gateway and the EC2 instances are launched and configured, follow the steps described next.

Step 1 - Create the Peering Connection

lab-021-scrn-01 lab-021-scrn-02 lab-021-scrn-03

Step 2 - Accept the Peering Connection

lab-021-scrn-04 lab-021-scrn-05 lab-021-scrn-06 lab-021-scrn-07

Step 3 - Modify Route Tables

First on the VPC A side:

lab-021-scrn-08

Then on the VPC B side:

lab-021-scrn-09

To test the setting, first ssh to the EC2 instance A (the one on VCP A). Then try to ssh to EC2 instance B (the on on VPC B) using its private IP address.

No comments:

Post a Comment