LS
Size: a a a
LS
LS
VT
AR
locals {
regions = length(var.master_zones) > 1 ? [{
region = var.master_region
locations = var.master_zones
}] : []
zones = length(var.master_zones) > 1 ? [] : var.master_zones
}
. . .
master {
version = var.master_version
public_ip = var.master_public_ip
dynamic "zonal" {
for_each = local.zones
content {
zone = zonal.value["zone"]
subnet_id = zonal.value["id"]
}
}
dynamic "regional" {
for_each = local.regions
content {
region = regional.value["region"]
dynamic "location" {
for_each = regional.value["locations"]
content {
zone = location.value["zone"]
subnet_id = location.value["id"]
}
}
}
}
}VT
VT
locals {
regions = length(var.master_zones) > 1 ? [{
region = var.master_region
locations = var.master_zones
}] : []
zones = length(var.master_zones) > 1 ? [] : var.master_zones
}
. . .
master {
version = var.master_version
public_ip = var.master_public_ip
dynamic "zonal" {
for_each = local.zones
content {
zone = zonal.value["zone"]
subnet_id = zonal.value["id"]
}
}
dynamic "regional" {
for_each = local.regions
content {
region = regional.value["region"]
dynamic "location" {
for_each = regional.value["locations"]
content {
zone = location.value["zone"]
subnet_id = location.value["id"]
}
}
}
}
}LS
LS
locals {
regions = length(var.master_zones) > 1 ? [{
region = var.master_region
locations = var.master_zones
}] : []
zones = length(var.master_zones) > 1 ? [] : var.master_zones
}
. . .
master {
version = var.master_version
public_ip = var.master_public_ip
dynamic "zonal" {
for_each = local.zones
content {
zone = zonal.value["zone"]
subnet_id = zonal.value["id"]
}
}
dynamic "regional" {
for_each = local.regions
content {
region = regional.value["region"]
dynamic "location" {
for_each = regional.value["locations"]
content {
zone = location.value["zone"]
subnet_id = location.value["id"]
}
}
}
}
}AR
VT
LS
VT
-target при первом прогоне на сеть.VT
LS
VT
VT
VT
Just went ahead and restructured all my projects. Split them into a bunch of seperated things. Wherever there is a provider that depends on the output of a previous step, I split it.
Have done both makefiles to run them all in order and individual ci projects for each of them chained together in a pipeline depending. It's not that bad, but it does go against the flow of how you assume things should be structured.
@ pbecotte
VT
locals {
regions = length(var.master_zones) > 1 ? [{
region = var.master_region
locations = var.master_zones
}] : []
zones = length(var.master_zones) > 1 ? [] : var.master_zones
}
. . .
master {
version = var.master_version
public_ip = var.master_public_ip
dynamic "zonal" {
for_each = local.zones
content {
zone = zonal.value["zone"]
subnet_id = zonal.value["id"]
}
}
dynamic "regional" {
for_each = local.regions
content {
region = regional.value["region"]
dynamic "location" {
for_each = regional.value["locations"]
content {
zone = location.value["zone"]
subnet_id = location.value["id"]
}
}
}
}
}LS
VT