Skip to content

Deploys an Aviatrix edge gateway and attaches it to the desired transit gateway and network segment

License

Notifications You must be signed in to change notification settings

terraform-aviatrix-modules/terraform-aviatrix-mc-edge

Repository files navigation

terraform-aviatrix-mc-edge

Description

Deploys one or multiple Aviatrix edge gateways to a site and attaches it to the desired transit gateway(s) and network domain for segmentation.

Compatibility

Module version Terraform version Controller version Terraform provider version
v1.3.0 >= 1.3.0 >= 7.1 ~> 3.1.0

Usage Example

See examples

module "branch1" {
  source  = "terraform-aviatrix-modules/mc-edge/aviatrix"
  version = "v1.3.0"

  site_id        = "home"
  network_domain = "test"

  edge_gws = {
    gw1 = {
      gw_name                 = "gw1",
      lan_interface_ip_prefix = "10.50.10.10/24",
      transit_gws = {
        transit1 = {
          name               = "transit1",
          attached           = true
          enable_jumbo_frame = true,
        },
        transit2 = {
          name = "transit2",
        },
      }
      wan_default_gateway_ip  = "1.1.1.1"
      wan_interface_ip_prefix = "1.1.1.10/24"
    }
    gw2 = {
      gw_name                 = "gw2",
      lan_interface_ip_prefix = "10.50.10.11/24",
      transit_gws = {
        transit1 = {
          name               = "transit1",
          attached           = true
          enable_jumbo_frame = true,
        },
        transit2 = {
          name     = "transit2",
          attached = true
        },
      }
      wan_default_gateway_ip  = "1.1.1.1"
      wan_interface_ip_prefix = "1.1.1.11/24"
    }
  }
}

On first apply, the ISO/Cloud-init gets created for deployiong the actual gateway. Once gateway deployment is complete, add attached = true to each gw entry to create the attachment to the transit gateway, any network segmentation domain as well as set up any desired BGP peers.

Module variables

The following variables are required:

key value
edge_gws A map of edge gateways.
site_id Site ID for the spoke gateway.

Mandatory Edge Gateway map attributes (edge_gws)

key value
lan_interface_ip_prefix A list of LAN interface IP and subnet prefix for each edge gw.
wan_default_gateway_ip WAN default gateway IP.
wan_interface_ip_prefix WAN interface IP and subnet prefix.