AWS Transit Gateway のアイコン

AWS Transit Gateway Popular2018年〜

A network hub that connects multiple VPCs and on-premises networks in a hub-and-spoke topology

What It Does

AWS Transit Gateway consolidates multiple VPCs, VPN connections, and Direct Connect gateways into a single hub for interconnection. Instead of mesh-style VPC Peering connections, it simplifies connectivity with a hub-and-spoke topology. Route tables control traffic paths and enable network segmentation.

Use Cases

Network connectivity for large multi-account environments with dozens to hundreds of VPCs, connecting on-premises to multiple VPCs, centralized access to shared service VPCs (DNS, authentication), and cross-region network connectivity.

Everyday Analogy

Think of an airport hub. Instead of flying direct routes (VPC Peering) between every city (VPC), routing through a hub airport (Transit Gateway) dramatically reduces the number of routes while enabling travel between all cities.

What Is Transit Gateway?

AWS Transit Gateway functions as a network hub. With VPC Peering, fully connecting N VPCs requires N*(N-1)/2 peering connections, but Transit Gateway needs only N attachments. For 10 VPCs, that's 45 peering connections reduced to just 10 attachments.

Route Tables and Segmentation

Transit Gateway route tables control which VPCs can communicate with each other. By creating multiple route tables and associating attachments, you can implement segmentation like isolating production from development networks or controlling access between departments. Transit Gateway Peering connects Transit Gateways across regions to build global networks. For detailed coverage of route tables and segmentation, related books on Amazon are a useful reference.

Getting Started

Create a Transit Gateway in the VPC console and add the VPCs you want to connect as attachments. Add routes to each VPC's route table pointing to the Transit Gateway. Share the Transit Gateway with other accounts using RAM (Resource Access Manager) for multi-account environments.

Things to Watch Out For

  • Pay-per-use based on attachment count and data processing volume. May cost more than VPC Peering (data transfer only) in some cases
  • For a small number of VPC connections, VPC Peering is simpler and more cost-effective. Transit Gateway becomes beneficial when connecting 5+ VPCs
共有するXB!