AWS Transit Gateway
Cloud service · AWS · Updated

AWS Transit Gateway

In short

AWS Transit Gateway is a service that enables customers to connect their Amazon Virtual Private Clouds (VPCs) and their on-premises networks to a single gateway, simplifying their network architecture and enabling scalable, efficient routing among thousands of VPCs, AWS accounts, and on-premises environments.

Cloud Services Hub →

8 key features of AWS Transit Gateway

AWS Transit Gateway simplifies network management by enabling scalable connectivity, centralized routing control, and integrated security features for thousands of VPCs and on-premises networks, while also being cost-effective and supporting multi-region architectures.

01
Simplified Network Management

AWS Transit Gateway allows for the interconnection of VPCs and on-premises networks through a central hub, simplifying the network management process by reducing the number of connections needed to be made and managed.

02
Scalable Connectivity

It supports scalable connectivity of thousands of Virtual Private Clouds (VPCs), enabling large-scale cloud infrastructure deployment without the complexity of managing a plethora of point-to-point connections.

03
Centralized Routing Control

With AWS Transit Gateway, you have centralized control over your network routing, allowing you to easily manage how traffic is directed between your VPCs, on-premises networks, and the Internet.

04
Integrated Security Features

It offers integrated security features such as network segmentation and traffic inspection, enhancing the overall security posture of your cloud network infrastructure.

05
Cost-Effectiveness

By consolidating multiple VPC and VPN connections into a single network transit hub, AWS Transit Gateway can reduce operational and connectivity costs.

06
Multi-region Support

AWS Transit Gateway provides multi-region support, enabling global networks to be interconnected efficiently, enhancing the performance of applications by lowering latency across different geographical locations.

07
Cross-account Sharing with AWS RAM

Share a transit gateway with other AWS accounts using AWS Resource Access Manager so those accounts can attach their VPCs; either account can delete an attachment.

08
IPv4 and IPv6 Routing

Transit gateway route tables support both IPv4 and IPv6 CIDRs and targets.

Where AWS Transit Gateway is used

AWS Transit Gateway simplifies cloud network management by providing a centralized hub for connecting VPCs, on-premises networks, and other environments, facilitating hybrid cloud connectivity, enabling efficient multi-account network setups, and supporting advanced network segmentation and security configurations.

  1. 01
    Centralized Network Management

    AWS Transit Gateway acts as a cloud router, allowing organizations to connect their Amazon Virtual Private Clouds (VPCs), on-premises networks, and other networking environments through a central hub. This simplifies network management by reducing the complexity and number of route tables, network ACLs, and security groups that need to be manually configured.

  2. 02
    Hybrid Cloud Connectivity

    AWS Transit Gateway facilitates the seamless integration of on-premises networks with the AWS Cloud. By leveraging AWS Direct Connect or VPN connections, businesses can extend their existing infrastructure into the cloud, creating a cohesive hybrid environment that supports the dynamic nature of their workloads and data residency requirements.

  3. 03
    Multi-account AWS Environments

    For organizations utilizing AWS Organizations, AWS Transit Gateway enables the connection of VPCs across multiple AWS accounts without the need to establish peering connections individually between them. This allows for simplified network architecture and operational efficiency, particularly for large or evolving cloud environments.

  4. 04
    Network Segmentation and Security

    AWS Transit Gateway supports network segmentation, which is crucial for security and compliance. Users can isolate or segment network traffic based on workload or security posture, leveraging the Transit Gateway's ability to route traffic according to specific policies. This enables the enforcement of security policies and compliance standards more effectively across the network.

How AWS Transit Gateway is priced

AWS Transit Gateway pricing includes charges for data processing, per-attachment fees, and extra costs for exceeding baseline route table propagations.

Data Processing Charges

Per-gigabyte processing charges apply to data sent from VPC, Direct Connect, VPN, or Network Firewall attachments to Transit Gateway and to data received by each multicast receiver instance. Connect and Private IP VPN attachments have no additional processing charge beyond their underlying transport attachment. Data sent from a peering attachment to a Transit Gateway incurs no data processing charge.

Attachment Charges

Hourly attachment charges apply to VPC, VPN, Direct Connect, Transit Gateway Connect, peering, and network function attachments. The billed account depends on the attachment type: the VPC owner, Transit Gateway owner for VPN and Connect, Direct Connect gateway owner, each peered Transit Gateway owner, or AWS Network Firewall owner, respectively.

Data Transfer Charges

Standard AWS data transfer charges apply in addition to Transit Gateway charges.

Managed 1:1 NAT Add-on

Managed 1:1 NAT on Transit Gateway is a paid add-on billed at standard Regional NAT Gateway hourly and data processing rates; the add-on data processing charges apply only to 1:1 NAT traffic.

Services AWS Transit Gateway works with

Amazon VPCAmazon VPC

Integrates multiple Amazon Virtual Private Clouds (VPCs) to enable communication between them via a central hub.

AWS Direct ConnectAWS Direct Connect

Provides a dedicated network connection from on-premise environments to the AWS cloud for a more consistent network experience.

AWS Site-to-Site VPNAWS Site-to-Site VPN

Establishes secure VPN connections between on-premise sites and AWS, enabling communication with VPCs connected to the Transit Gateway.

Amazon AthenaAmazon Athena

Transit Gateway flow logs delivered to Amazon S3 can be queried with Amazon Athena using tables defined for the transit gateway flow-log format. This lets you analyze traffic between attachments and investigate rejected traffic with SQL.

Amazon CloudWatchAmazon CloudWatch

Transit Gateway publishes CloudWatch metrics for traffic volume, packet counts, and packet drops. You can also deliver transit gateway flow logs to CloudWatch Logs and create alarms to detect connectivity problems.

Amazon Data FirehoseAmazon Data Firehose

Transit Gateway flow logs can be delivered to Amazon Data Firehose. A delivery stream can forward these traffic records to supported storage and analytics destinations.

Amazon EC2Amazon EC2

Transit Gateway Connect establishes GRE tunnels and BGP routing with network appliances running on EC2 instances. Transit Gateway multicast domains also use EC2 network interfaces to register multicast sources and receivers.

Amazon EventBridgeAmazon EventBridge

Transit Gateway API activity recorded by AWS CloudTrail can match EventBridge rules. For example, a rule can initiate an approval or notification workflow when someone creates a transit gateway VPC attachment.

Amazon S3Amazon S3

Transit Gateway can publish flow logs to an S3 bucket for retention and traffic analysis. These logs record traffic traversing transit gateway attachments, including information useful for investigating routing problems and packet loss.

AWS Client VPNAWS Client VPN

Transit Gateway supports attachments to Client VPN endpoints, allowing remote-access clients to reach networks connected to the transit gateway. Routing and authorization rules control which destinations those clients can access.

What is AWS Transit Gateway

3 min read

Amazon Web Services (AWS) Transit Gateway represents a pivotal advancement in how cloud architects and network engineers can design interconnectivity across AWS services, external connections, and on-premises networks. This service acts as a hub that simplifies the networking and management complexities typically associated with large-scale network architectures. By allowing different Virtual Private Clouds (VPCs), VPN connections, and AWS Direct Connect gateways to communicate through a single gateway, it streamlines the process of scaling network connectivity and ensures a more organized, easy-to-manage networking architecture. 

A primary function of the AWS Transit Gateway is to route traffic across your AWS VPCs, office locations, and data centers. Before its introduction, managing interconnectivity across multiple VPCs and external connections required establishing multiple peering connections, which became exponentially complex as the number of VPCs grew. AWS Transit Gateway simplifies this architecture by acting as a central point through which all traffic is routed, enabling a hub-and-spoke model. This model significantly reduces the operational burden and the potential for configuration errors, which can enhance both network reliability and security. 

In addition to reducing complexity, AWS Transit Gateway is designed for high availability and scalability. It allows for the connection of thousands of VPCs, which is crucial for large organizations or service providers dealing with extensive networks. This eliminates the need for a meshed network of VPC peering connections, simplifying architecture without sacrificing the capacity for growth. 

Moreover, the AWS Transit Gateway supports multicast traffic, an essential feature for applications that need to send the same content to multiple destinations simultaneously, such as in media distribution or live broadcasting scenarios. This capability was challenging to manage in cloud environments prior to the introduction of this service. 

Multicast must be enabled on the transit gateway and uses multicast domains to send traffic from sources to group members over the VPC attachments associated with each domain.

Security within the AWS Transit Gateway ecosystem is managed through the use of route tables and network segmentation. Administrators can define which networks or VPCs can communicate with one another, adding an extra layer of security by isolating resources and controlling traffic flow. Furthermore, by integrating with AWS Identity and Access Management (IAM), it provides granular control over who can make changes to the Transit Gateway, enhancing overall security posture. 

Each VPC or VPN attachment is associated with a single route table, which determines the next hop for traffic arriving from that attachment.

For organizations that require connectivity across geographic boundaries, AWS Transit Gateway offers a Cross-Region Peering feature. This facilitates secure and efficient routing of traffic between AWS regions, optimizing latency and bandwidth by keeping traffic on the AWS global network. 

Transit gateway peering attachments support static routing only; routes to a peered transit gateway must point to the peering attachment.

In summary, AWS Transit Gateway is a comprehensive solution designed to address the challenges of network interconnectivity and management at scale. Its introduction has helped simplify network architecture, improve operational efficiency, and provide the scalability required by today's dynamic cloud environments. Whether for multicasting, simplified network management, or efficient cross-region communication, AWS Transit Gateway offers a robust set of features to support complex networking scenarios.

Concepts related to AWS Transit Gateway

AWS Transit Gateway exam questions

Real practice exam questions on AWS Transit Gateway, with the correct answer and its explanation. Answer them with every option in the exam simulator.

SOA-C03

A company has six application accounts and one networking account in an AWS Organization. Each application account has two VPCs attached to its own transit gateway. Each of these six transit gateways has a peering connection to a transit gateway in the networking account, which provides access to an existing corporate VPN connection.

The VPC CIDR blocks do not overlap. Applications require connectivity to the corporate network but must not communicate with VPCs in other application accounts. Each VPC attachment currently includes subnets in two Availability Zones, and this resilience must be retained.

A billing review identifies recurring hourly charges for both sides of the transit gateway peering connections. The company wants to eliminate these charges while retaining private connectivity and account isolation.

Which solution should a CloudOps engineer implement?

Show answerCORRECT ANSWER

Share the networking account's transit gateway through AWS Resource Access Manager. Replace the application VPCs' existing attachments with attachments to this gateway, using both Availability Zones. Configure separate transit gateway route tables to permit corporate connectivity without inter-account VPC connectivity, and delete the obsolete peering connections and application-account gateways.

A shared transit gateway supports VPC attachments from multiple accounts. Consolidating the VPC attachments onto the networking account's gateway removes the need for the six peering connections and their attachment-hour charges. Separate route tables with controlled associations, propagation, and return routes preserve isolation while allowing corporate access. Selecting attachment subnets in both Availability Zones retains resilience.

SAP-C03

A company has a network account and a connectivity tooling account in AWS Organizations. The network account owns a transit gateway and shares it with the tooling account through AWS RAM. An onboarding workflow runs in the tooling account.

The workflow must give selected vendor accounts outside the company's organization access to the same transit gateway so that the vendors can request VPC attachments. The vendor accounts must remain outside the organization. Governance requires the network account to retain ownership of the gateway. The workflow may assume a narrowly scoped role in the network account, but it must not receive general network administration permissions. The vendors will accept any required sharing invitations.

Which solution should a solutions architect recommend?

Show answerCORRECT ANSWER

Have the workflow assume a role in the network account with permissions limited to managing the required AWS RAM share. Create an external-enabled resource share there for the transit gateway and associate the approved vendor account IDs.

Only the resource-owning account can share the transit gateway through AWS RAM. Assuming a narrowly scoped role in the network account lets the centralized workflow create and manage the share in the owner's account without transferring ownership or granting general network administration access. The external vendors accept their invitations before using the shared gateway.

SAA-C03

A company runs IPv4-only EC2 workers in private subnets in one Availability Zone. The workers use an existing zonal public NAT gateway in the same Availability Zone to access internet repositories. The NAT gateway must remain in place for this access.

The VPC also has an existing AWS Transit Gateway connection to an on-premises data center. The workers must now initiate connections to an on-premises licensing server. The data center requires all worker connections to appear to originate from one private IPv4 address from the VPC's CIDR block. The VPC and data center address ranges do not overlap. Existing transit gateway and data center routes support return traffic to the VPC CIDR block.

Which solution meets these requirements with the LOWEST additional recurring networking cost?

Show answerCORRECT ANSWER

Route licensing-server traffic from the worker subnets through the existing public NAT gateway. In the NAT gateway's subnet route table, route the licensing-server destination through the transit gateway. Allowlist the NAT gateway's private IPv4 address.

A public NAT gateway can translate traffic destined for a private network through a transit gateway. The licensing server sees the NAT gateway's private IPv4 address because the traffic does not traverse an internet gateway. Reusing the required gateway avoids additional NAT gateway hourly charges while preserving internet access.

Practice AWS Transit Gateway in a full exam

Questions on AWS Transit Gateway in each practice exam, with every answer option and an explanation for each:

Start a free practice exam

Learn AWS Transit Gateway in lessons

9 short lessons on AWS Transit Gateway in 5 certification courses.

and 3 more lessons

Open the lessons

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.