Skip to content

Commit 87c8215

Browse files
authored
feat: add next_hop_ilb to routes module (#241)
1 parent 24f2a0f commit 87c8215

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

modules/routes/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,5 @@ The routes list contains maps, where each object represents a route. For the nex
7373
| next\_hop\_instance | URL or name of an instance that should handle matching packets. If just name is specified "next\_hop\_instance\_zone" is required | string | - | yes |
7474
| next\_hop\_instance\_zone | The zone of the instance specified in next\_hop\_instance. Only required if next\_hop\_instance is specified as a name | string | - | no |
7575
| next\_hop\_vpn\_tunnel | URL to a VpnTunnel that should handle matching packets | string | - | yes |
76+
| next\_hop\_ilb | The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets. | string | - | no |
7677
| priority | The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins | string | `"1000"` | yes |

modules/routes/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ resource "google_compute_route" "route" {
3939
next_hop_instance = lookup(each.value, "next_hop_instance", null)
4040
next_hop_instance_zone = lookup(each.value, "next_hop_instance_zone", null)
4141
next_hop_vpn_tunnel = lookup(each.value, "next_hop_vpn_tunnel", null)
42+
next_hop_ilb = lookup(each.value, "next_hop_ilb", null)
4243
priority = lookup(each.value, "priority", null)
4344

4445
depends_on = [var.module_depends_on]

0 commit comments

Comments
 (0)