Closed jeffmccune closed 3 years ago
Actually, they are used to create the GCP route resources:
resource google_compute_route "via_nic0" {
for_each = toset(var.nic0_cidrs)
name = "${var.name_prefix}-${local.r_suffix}-${substr(sha1("${var.nic1_network}-${each.value}"), 0, 6)}"
project = var.project_id
network = var.nic1_network
dest_range = each.value
priority = var.priority
next_hop_ilb = google_compute_forwarding_rule.ilb1.self_link
}
The routing policy has been updated to be "like a wire." Traffic coming in nic0 flows out nic1 and vice-versa, the variables and configuration for the cidr ranges are no longer used.
Remove them from the examples input variables to avoid confusion.
Never used: