This repository contains small, composable Terraform modules for deploying VMware VeloCloud SD-WAN Edges and their cloud-side routing infrastructure in AWS and Azure.
| Cloud | Module | Responsibility |
|---|---|---|
| AWS | modules/aws/velocloud-edge |
One three-NIC Edge EC2 instance: GE1 management, GE2 WAN with EIP, and GE3 LAN/TGW Connect |
| AWS | modules/aws/edge-vpc |
Multi-AZ VPC, public GE1/GE2 and private GE3 subnets, optional dedicated TGW subnets, Internet Gateway, route tables, and TGW VPC transport attachment |
| AWS | modules/aws/transit-gateway-connect |
One TGW Connect attachment and one GRE/BGP Connect peer per Edge |
| Azure | modules/azure/velocloud-edge |
One multi-NIC Edge VM, Marketplace image/plan inputs, WAN public IP and NSG, and activation cloud-init |
| Azure | modules/azure/route-server-hub |
Hub VNet, named subnets, dedicated RouteServerSubnet, and Azure Route Server |
| Azure | modules/azure/route-server-peering |
One Azure Route Server BGP connection per Edge |
The expected compositions are:
AWS: edge-vpc -> velocloud-edge (N) -> transit-gateway-connect
\______________________/ |
Edge GE3 IPs existing Transit Gateway
Azure: route-server-hub -> velocloud-edge (N) -> route-server-peering
\____________________/
Edge LAN IPs
See examples/aws and examples/azure for
complete wiring examples.
- Each Edge module manages one appliance. Use module
for_eachfor HA pairs or larger fleets so each Edge has an independent lifecycle and stable address. - Cloud network creation and dynamic-routing peering are separate. This avoids dependency cycles and permits existing VPCs, VNets, Transit Gateways, or Route Servers to be used independently.
- AWS Connect runs over a Transit Gateway VPC attachment. The VPC module creates that transport attachment; the Connect module creates the GRE/BGP overlay.
- The AWS VPC provides direct Internet access only to public subnets. GE1 and GE2 use the public subnet, but only GE2 receives an Elastic IP. Private GE3 subnets have no NAT default route and carry TGW Connect transport traffic.
- Dedicated small TGW attachment subnets are supported and recommended. If no
transit_gateway_cidris supplied on the VPC subnet definitions, the private Edge subnets are used for the VPC attachment. - Activation codes are marked sensitive, but Terraform still records sensitive values in state. Use encrypted remote state with tightly controlled access.
- These modules configure cloud infrastructure and bootstrap activation. They do not wait on VCO state or configure BGP inside the Edge/VCO.
The AWS modules require Terraform 1.5+ and AWS provider 6.x. The Azure modules require Terraform 1.5+ and AzureRM provider 5.x. Run the normal workflow from a root configuration that calls the modules:
terraform init
terraform fmt -recursive
terraform validate
terraform planMarketplace image availability, accepted terms, supported VM sizes, Edge image cloud-init behavior, TGW CIDR allocation, and BGP settings remain deployment inputs and should be confirmed for the target account and VCO release.