Use context in ilb routes (#3462)
* Use context in ilb routes * Tests context
This commit is contained in:
@@ -72,9 +72,11 @@ resource "google_compute_route" "ilb" {
|
||||
dest_range = lookup(
|
||||
local.ctx.cidr_ranges, each.value.dest_range, each.value.dest_range
|
||||
)
|
||||
priority = each.value.priority
|
||||
tags = each.value.tags
|
||||
next_hop_ilb = each.value.next_hop
|
||||
priority = each.value.priority
|
||||
tags = each.value.tags
|
||||
next_hop_ilb = lookup(
|
||||
local.ctx.addresses, each.value.next_hop, each.value.next_hop
|
||||
)
|
||||
}
|
||||
|
||||
resource "google_compute_route" "instance" {
|
||||
|
||||
Reference in New Issue
Block a user