Skip to content

zscaler/terraform-aws-cloud-connector-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform logo Zscaler logo

Zscaler Cloud Connector AWS Terraform Modules

README for AWS Terraform

This README serves as a quick start guide to deploy Zscaler Cloud Connector resources in an AWS cloud using Terraform. To learn more about the resources created when deploying Cloud Connector with Terraform, see Deployment Templates for Zscaler Cloud Connector.

AWS Deployment Scripts for Terraform

Use this repository to create the deployment resources required to deploy and operate Cloud Connector in a new or existing virtual private cloud (VPC). The examples directory contains complete automation scripts for both greenfield/POV and brownfield/production use.

Prerequisites

The AWS Terraform scripts leverage Terraform v1.1.9 which includes full binary and provider support for macOS M1 chips, but any Terraform version 0.13.7 should be generally supported.

  • provider registry.terraform.io/hashicorp/aws v5.49.x (minimum 5.32.0)
  • provider registry.terraform.io/hashicorp/random v3.3.x
  • provider registry.terraform.io/hashicorp/local v2.2.x
  • provider registry.terraform.io/hashicorp/null v3.1.x
  • provider registry.terraform.io/providers/hashicorp/tls v3.4.x

AWS requirements

  1. A valid AWS account with Administrator Access to deploy required resources
  2. AWS ACCESS KEY ID
  3. AWS SECRET ACCESS KEY
  4. AWS Region (E.g. us-west-2)
  5. Subscribe and accept the terms of using Amazon Linux 2 (for base deployments with workloads + bastion) at this link
  6. Subscribe and accept the terms of using Zscaler Cloud Connector image at this link

Zscaler requirements

  1. A valid Zscaler Cloud Connector provisioning URL generated from the Zscaler Cloud & Branch Connector Admin Portal
  2. Zscaler Cloud Connector Credentials (api key, username, password) are stored in AWS Secrets Manager

Terraform client requirements

  1. If executing Terraform via the "zsec" wrapper bash script, it is advised that you run from a MacOS or Linux workstation. Minimum installed application requirements to successfully from the script are:
  • AWS CLI (to generate temporary session token if required)
  • bash
  • curl
  • unzip
  • dig


Greenfield Deployments

Use this if you are building an entire cluster from the ground up. These templates include a bastion host and test workloads and are designed for greenfield/POV testing.

Starter Deployment Template

Use the Starter Deployment Template to deploy your Cloud Connector in a new VPC.

Starter Deployment Template with ZPA

Use the Starter Deployment Template with ZPA to deploy your Cloud Connector in a new VPC. Route 53 endpoints redirect DNS resolver capability for ZPA.

Starter Deployment Template with Gateway Load Balancer (GWLB)

Use the Starter Deployment Template with GWLB to deploy your Cloud Connectors in a new VPC and to load balance traffic across multiple Cloud Connectors. Zscaler's recommended deployment method is Gateway Load Balancer (GWLB). GWLB distributes traffic across multiple Cloud Connectors and achieves high availability.

Starter Deployment Template with Gateway Load Balancer (GWLB) and ZPA

Use the Starter Deployment Template with GWLB to deploy your Cloud Connectors in a new VPC and to load balance traffic across multiple Cloud Connectors. Zscaler's recommended deployment method is Gateway Load Balancer (GWLB). GWLB distributes traffic across multiple Cloud Connectors and achieves high availability. Route 53 endpoints redirect DNS resolver capability for ZPA.

Starter Deployment Template with Auto Scaling and Gateway Load Balancer (GWLB)

Use the Starter Deployment Template with ASG and GWLB to deploy your Cloud Connectors in a new VPC and to load balance traffic across multiple Cloud Connectors. Zscaler's recommended deployment method is Gateway Load Balancer (GWLB). GWLB distributes traffic across multiple Cloud Connectors and achieves high availability. For added resiliency and elasticity, Cloud Connectors are deployed via a Launch Template configured Auto Scaling group.

Starter Deployment Template with Auto Scaling, Gateway Load Balancer (GWLB) and ZPA

Use the Starter Deployment Template with ASG, GWLB and ZPA to deploy your Cloud Connectors in a new VPC and to load balance traffic across multiple Cloud Connectors. Zscaler's recommended deployment method is Gateway Load Balancer (GWLB). GWLB distributes traffic across multiple Cloud Connectors and achieves high availability. For added resiliency and elasticity, Cloud Connectors are deployed via a Launch Template configured Auto Scaling group. Route 53 endpoints redirect DNS resolver capability for ZPA.

Brownfield Deployment

Brownfield deployment templates are most applicable for production deployments and have more customization options than a "base" deployment. They also do not include a bastion or workload hosts deployed. See Modules for the Terraform configurations for brownfield deployment.

Custom Deployment Template with Gateway Load Balancer (GWLB)

Use the Custom Deployment template with GWLB to deploy your Cloud Connector in a new or existing VPC and load balance traffic across multiple Cloud Connectors. Zscaler's recommended deployment method is Gateway Load Balancer (GWLB). GWLB distributes traffic across multiple Cloud Connectors and achieves high availability. Optional ZPA/Route 53 add-on capabilities.

Custom Deployment Template with Auto Scaling and Gateway Load Balancer (GWLB)

Use the Custom Deployment template with GWLB to deploy your Cloud Connector in a new or existing VPC and load balance traffic across multiple Cloud Connectors. Zscaler's recommended deployment method is Gateway Load Balancer (GWLB). GWLB distributes traffic across multiple Cloud Connectors and achieves high availability. For added resiliency and elasticity, Cloud Connectors are deployed via a Launch Template configured Auto Scaling group. Optional ZPA/Route 53 add-on capabilities.