Cloud network hubs: AWS Transit Gateway, Azure Virtual WAN and hub-and-spoke cloud designs
In short: When an organisation has dozens of VPCs or VNets, peering each pair directly becomes unmanageable. A transit hub, such as AWS Transit Gateway or an Azure Virtual WAN hub, connects them all in a hub-and-spoke design, with route tables to control who can reach whom, central firewalls for inspection, shared services, and a single place for on-premises VPN and private connections.
The peering problem
In the cloud, each VPC (AWS, Google) or VNet (Azure) is an isolated network. Connecting two is easy with peering, but peering is not transitive: if A peers with B and B with C, A still cannot reach C. With 30 VPCs, a full mesh needs 435 peerings, each with its own routes and rules. A hub fixes this.
AWS Transit Gateway
- A regional router that VPCs, VPN connections and Direct Connect gateways attach to.
- Multiple route tables on the TGW let you segment: for example production VPCs can reach shared services but not development VPCs.
- Traffic can be sent through an inspection VPC with firewalls (AWS Network Firewall or third-party appliances behind a Gateway Load Balancer) before reaching its destination.
- TGWs in different regions peer with each other; AWS Cloud WAN adds global, policy-based management on top.
Azure: hub VNet or Virtual WAN
- Hub-and-spoke VNets: a hub VNet holds shared services, firewalls and gateways; spoke VNets peer with it, and user-defined routes send spoke traffic through the hub firewall.
- Azure Virtual WAN: a Microsoft-managed hub per region with built-in routing, VPN, ExpressRoute and SD-WAN integration and optional secured hubs with Azure Firewall. Less to build yourself, less control over details.
Design patterns
- Shared services (DNS resolvers, directory, monitoring, CI/CD tools) in a dedicated VPC/VNet reachable from all spokes.
- Centralised egress: internet traffic from all spokes leaves through one NAT and firewall layer, simplifying control and logging (at the cost of some data processing charges).
- Inspection of traffic between environments and to on-premises.
- Hybrid connectivity: VPN and Direct Connect / ExpressRoute attach to the hub, not to each VPC.
- Non-overlapping IP plan across all clouds and on-premises from the start; overlapping ranges are very hard to fix later.
Things to watch
- Data transfer and processing charges through hubs and firewalls can be significant; model them.
- Asymmetric routing through stateful firewalls in active/active setups needs careful design (for example appliance mode on TGW).
- DNS across VPCs and on-premises (private zones, resolvers and forwarding rules) is as important as routing.
Real-world example: the peering spaghetti
A software company had grown to 45 AWS VPCs connected by over 100 peerings, each with hand-written routes. Nobody could say which environments could reach production. Moving to Transit Gateway with three route tables (production, non-production, shared) and an inspection VPC replaced the peerings, made segmentation explicit and gave the security team one place to log and control traffic.
Practice
Why does VPC peering not scale for many VPCs?
How does AWS Transit Gateway provide segmentation?
What is centralised egress?
Key takeaways
- Peering is not transitive; hubs avoid a full mesh.
- Transit Gateway and Azure Virtual WAN or hub VNets connect spokes, VPN and private links.
- Use hub route tables, shared services, inspection and centralised egress.
- Plan non-overlapping IPs, DNS and data transfer costs from the start.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.