Connecting VPCs with VPC Peering in AWS

1.5 hours
  • 3 Learning Objectives

About this Hands-on Lab

In this hands-on lab scenario, you’re a cloud network engineer working for a large organization that has multiple VPCs. Each VPC is dedicated to a business unit (e.g., Marketing, Sales, Services, etc.). The Marketing department requires access to all resources in the Sales department, and vice versa. We will create a VPC peering connection between the Marketing and Sales VPCs, allowing them to act as if they are on the same network. We’ll also add the necessary routes to the associated network route tables.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Secure the EC2 Instance
  1. In the AWS Management Console, navigate to VPC.
  2. Under SECURITY, select Network ACLs.
  3. Select Public2-NACL.
  4. Click Inbound Rules.
  5. Click Edit Inbound Rules.
  6. Change the source for Rule # 104 to
  7. Click Save.
Create a VPC Peering Connection
  1. Navigate to VPC.
  2. Under VIRTUAL PRIVATE CLOUD, select Peering Connections.
  3. Click Create Peering Connection.
  4. Set the following values:
    • Peering connection name tag: Marketing<->Sales
    • VPC (Requester): Marketing-VPC
    • VPC (Accepter): Sales-VPC
  5. Leave the rest as their defaults and click Create Peering Connection.
  6. Click OK. The Status should now be Pending Acceptance.
  7. To accept the VPC peering connection, select the newly created connection and click Actions > Accept Request.
  8. Review and click Yes, Accept
  9. Click Close.
Configure Routing
  1. Under VIRTUAL PRIVATE CLOUD, select Route Tables.
  2. Select Public1-RT.
  3. Select Routes.
  4. Click Edit Routes.
  5. Click Add Route and enter the following values:
    • Destination:
    • Target: Marketing<->Sales
  6. Click Save routes.
  7. Repeat the steps above for Private1-RT.
  8. Repeat the steps above for Public2-RT and Private2-RT, setting the Destination to

Additional Resources

Log in to the live AWS environment using the provided credentials. Make sure you are in us-east-1 when you work in this environment.

If you are using PuTTY to connect to EC2 instances, use these instructions.

For help troubleshooting your SSH connection, click here.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?