Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

Connecting VPCs with VPC Peering in AWS

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.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 1h 30m
Published
Clock icon Aug 24, 2022

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    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 10.0.0.0/13.
    7. Click Save.
  2. Challenge

    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.
  3. Challenge

    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: 10.2.0.0/16
      • 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 10.1.0.0/16.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

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.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans