No history yet

Architecture and Design

Architectural Models for Zscaler in AWS

When integrating Zscaler into an AWS environment, the primary goal is to route traffic from your applications to Zscaler for inspection. This requires a solid architectural plan. Your choice of architecture will determine how traffic flows from your application Virtual Private Clouds (VPCs) to Zscaler's Cloud Connectors for egress inspection (ZIA) and private application access (ZPA).

The two predominant models are the Hub-and-Spoke and the Distributed architecture. Each has distinct trade-offs in terms of management, scalability, and cost.

The Hub-and-Spoke Model

The most common enterprise pattern is the Hub-and-Spoke model, which centralizes traffic inspection. In this design, you create a dedicated Security VPC that acts as the hub. This VPC hosts your Zscaler Cloud Connectors. All your application VPCs, or 'spokes', route their outbound and private traffic through this central hub for inspection.

This model simplifies management and ensures consistent security policy enforcement, as all traffic is funneled through a single point of control. Connectivity between the hub and spokes is typically managed by an AWS Transit Gateway, which acts as a cloud router, simplifying the network topology.

The primary advantage here is centralization. Security teams can manage firewall rules, routing, and Zscaler policies from a single location. However, this design can create a potential bottleneck if not scaled correctly. All traffic from every spoke passes through the hub, so designing for high availability is not just recommended; it's required.

Scaling with Gateway Load Balancer

For organizations requiring massive scalability and transparent traffic insertion, AWS offers the Gateway Load Balancer (GWLB). A GWLB operates at the third layer of the OSI model (the network layer), allowing you to deploy, scale, and manage virtual appliances like Zscaler's Cloud Connectors without the traffic ever leaving the AWS network.

In this architecture, the GWLB and the Cloud Connectors reside in the Security VPC. The GWLB exposes a VPC endpoint service, and each spoke VPC consumes this service by creating a GWLB Endpoint. Routing tables in the spoke VPCs are then configured to send all relevant traffic to this local endpoint. The GWLB handles distributing the traffic across the cluster of Cloud Connectors and ensures traffic flows back to the same connector it originated from, maintaining session state.

This pattern is powerful because it combines the centralized management of the hub-and-spoke model with the high performance and scalability of a distributed approach. It simplifies routing within the spokes, as traffic is sent to a local endpoint rather than being routed across a Transit Gateway for inspection.

Designing for High Availability

Whether you use a traditional hub-and-spoke model or one enhanced with GWLB, high availability (HA) is critical. A single point of failure in your security infrastructure could bring down your entire cloud operation.

For Zscaler, this means deploying connectors in an N+1 redundancy model. 'N' is the number of connectors required to handle your baseline traffic load, and '+1' is the extra connector for failover. For Cloud Connectors handling ZIA egress traffic, you should create a cluster of instances spread across multiple Availability Zones (AZs) within a single region. If one AZ goes down, traffic automatically fails over to the connectors in the healthy AZs.

A key cost optimization strategy is to keep traffic within a single Availability Zone whenever possible. Data transfer between AZs incurs costs. By using regional endpoints and ensuring instances in a spoke VPC prefer connectors in the same AZ, you can significantly reduce these cross-AZ data charges.

For ZPA, which provides access to private applications, the same principles apply to App Connectors. You create App Connector Groups and deploy multiple connectors within each group, again spread across different AZs. Zscaler's service intelligently routes users to the healthiest and closest App Connector, ensuring resilient access to your internal applications.

When operating within a multi-account structure using AWS Organizations , these patterns scale seamlessly. The Security VPC is typically owned by a central network or security account, and spoke VPCs from other accounts are attached to the Transit Gateway or consume the GWLB endpoint. This allows for centralized governance while giving application teams autonomy within their own accounts.

Ultimately, designing your Zscaler integration on AWS requires balancing centralization against distribution. The Hub-and-Spoke model with a Security VPC, connected via Transit Gateway and scaled with Gateway Load Balancer, provides a powerful, resilient, and manageable pattern for most enterprises. By adhering to HA principles like multi-AZ deployments and N+1 redundancy, you can build a security architecture that is both robust and efficient.