navigation

Set up AWS Transit Gateway

Overview

In this lab, you will implement the following architecture to connect four VPCs together via AWS Transit Gateway:

AWS Transit Gateway

In lesson lab Setting up VPC Peering, you have practiced setting up a Peering Connection between two VPCs. Now imagine you have four VPCs that want to connect to each other, how many Peering Connections do you need?

AWS Transit Gateway

Answer: You need up to 6 Peering Connection to connect 4 VPC together. Imagine you need to connect six, eight, or even ten VPCs together. From that, you realize that the Peering Connection connection method is not highly scalable.

AWS Transit Gateway (AWS TGW)

To work around the limitation of Peering Conenction, AWS Transite Gateway is used to connect VPC and on-premises network through a central hub. This simplifies the network and ends complex routing relationships. It acts like a cloud router - each new connection is made only once.

AWS Transit Gateway Attachment

AWS Transit Gateway Attachment is a tool to assign the subnets of each VPC to be connected to an initialized TGW. Transit Gateway Attachment operates on the scale of Availability Zone (AZ-level). In VPC, when a subnet in one AZ has a Transit Gateway Attachment with a TGW, other subnets in the same AZ can connect to that TGW.

This lab will result in fees for your AWS account. The instance will run all t3.nano. In addition, the lab has fees associated with Transit Gateway. Therefore, you will have to delete the lab template at the end of the lab to avoid additional costs.

Content

  1. Introduction
  2. Preparation
  3. Create Transit Gateway
  4. Create Transit Gateway Attachments
  5. Create Transit Gateway Route Tables
  6. Add Transit Gateway Routes to VPC Route Tables
  7. Resource Cleanup