Created
August 23, 2022 13:06
-
-
Save rtrentin73/8088ea78d8720b73d7ff866ff75c2363 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 "ingress-spoke-central" { | |
source = "terraform-aviatrix-modules/mc-spoke/aviatrix" | |
version = "1.3.0" | |
account = var.account | |
cloud = var.cloud | |
name = "avx-${var.region-a}-ingress" | |
region = var.region-a | |
cidr = cidrsubnet("${trimsuffix(var.cidr-region-a, "23")}16", 8, 2) | |
inspection = true | |
transit_gw = module.central-transit.transit_gateway.gw_name | |
ha_gw = true | |
instance_size = var.instance_size | |
single_az_ha = false | |
} | |
module "app-spoke-central" { | |
source = "terraform-aviatrix-modules/mc-spoke/aviatrix" | |
version = "1.3.0" | |
account = var.account | |
cloud = var.cloud | |
name = "avx-${var.region-a}-app" | |
region = var.region-a | |
cidr = cidrsubnet("${trimsuffix(var.cidr-region-a, "23")}16", 8, 3) | |
inspection = true | |
transit_gw = module.central-transit.transit_gateway.gw_name | |
ha_gw = true | |
instance_size = var.instance_size | |
single_az_ha = false | |
} | |
module "ingress-spoke-east" { | |
source = "terraform-aviatrix-modules/mc-spoke/aviatrix" | |
version = "1.3.0" | |
account = var.account | |
cloud = var.cloud | |
name = "avx-${var.region-b}-ingress" | |
region = var.region-b | |
cidr = cidrsubnet("${trimsuffix(var.cidr-region-b, "23")}16", 8, 2) | |
inspection = true | |
transit_gw = module.east-transit.transit_gateway.gw_name | |
ha_gw = true | |
instance_size = var.instance_size | |
single_az_ha = false | |
} | |
module "app-spoke-east" { | |
source = "terraform-aviatrix-modules/mc-spoke/aviatrix" | |
version = "1.3.0" | |
account = var.account | |
cloud = var.cloud | |
name = "avx-${var.region-b}-app" | |
region = var.region-b | |
cidr = cidrsubnet("${trimsuffix(var.cidr-region-b, "23")}16", 8, 3) | |
inspection = true | |
transit_gw = module.east-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