hands-on lab

Interconnecting Virtual Private Clouds with an AWS Transit Gateway

Up to 2h
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.


AWS Transit Gateway is a managed and scalable cloud routing resource that can be used to enable network access between different types of networks, including:

  • Virtual Private Clouds (VPCs)
  • Virtual Private Networks (VPN)
  • Direct Connect connections to offices and datacenters
  • Other AWS Transit Gateways

Using AWS Transit Gateway enables you to create sophisticated network architectures that are easier to operate and configure than alternative solutions.

Learning to use AWS Transit Gateway will make you more effective at working with complex network scenarios in the public AWS cloud.

In this hands-on lab, you will learn how to create and configure an AWS Transit Gateway to interconnect three existing VPCs.

Learning Objectives

Upon completion of this intermediate level lab, you will be able to:

  • Create an AWS Transit Gateway
  • Create Attachments and Route Tables for your AWS Transit Gateway
  • Configure VPC route tables for use with your AWS Transit Gateway
  • Observe AWS Transit Gateway traffic using flow logs

Intended Audience

  • Candidates for the AWS Certified Advanced Networking Specialty certification
  • Cloud Architects
  • DevOps Engineers
  • Network Engineers


Familiarity with the following will be beneficial but is not required:

  • AWS Transit Gateway
  • Amazon Virtual Private Cloud (VPC)
  • Routing and CIDR ranges
  • The Bash command line

The following content can be used to fulfill the prerequisite:


June 26th, 2023 - Updated screenshots to reflect the latest user interface changes

Environment before

Environment after

About the author

Learning paths

Andrew is a Labs Developer with previous experience in the Internet Service Provider, Audio Streaming, and CryptoCurrency industries. He has also been a DevOps Engineer and enjoys working with CI/CD and Kubernetes.

He holds multiple AWS certifications including Solutions Architect Associate and Professional.

Covered topics

Lab steps

Logging In to the Amazon Web Services Console
Creating a Transit Gateway
Creating Transit Gateway Attachments
Configuring Transit Gateway Routing
Configuring VPC Routing
Connecting to the Amazon Virtual Machine Using EC2 Instance Connect
Testing Your Transit Gateway