Created
May 3, 2022 15:01
-
-
Save rtrentin73/da85dd35ac09092c8df6b037e5042d36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module "mc_transit" { | |
source = "terraform-aviatrix-modules/mc-transit/aviatrix" | |
version = "v2.0.0" | |
cloud = var.cloud | |
cidr = var.vpcs["firenet"] | |
region = var.region | |
account = var.account | |
enable_transit_firenet = true | |
lan_cidr = var.vpcs["lan"] | |
} | |
module "firenet_1" { | |
source = "terraform-aviatrix-modules/mc-firenet/aviatrix" | |
version = "1.0.0" | |
transit_module = module.mc_transit | |
firewall_image = var.firewall_image | |
firewall_image_version = var.firewall_image_version | |
egress_cidr = var.vpcs["egress"] | |
egress_enabled = true | |
inspection_enabled = true | |
instance_size = var.instance_size | |
mgmt_cidr = var.vpcs["mgmt"] | |
password = var.password | |
} | |
module "mc-spoke" { | |
for_each = { | |
"spoke100" = "spoke100" | |
"spoke200" = "spoke200" | |
} | |
source = "terraform-aviatrix-modules/mc-spoke/aviatrix" | |
version = "1.1.2" | |
account = var.account | |
cloud = var.cloud | |
name = "gcp-${each.value}-${var.region}" | |
region = var.region | |
cidr = var.vpcs["${each.value}"] | |
inspection = true | |
transit_gw = module.mc_transit.transit_gateway.gw_name | |
ha_gw = true | |
instance_size = var.instance_size | |
single_az_ha = false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment