Skip to content

Commit

Permalink
feat: add next_hop_ilb to routes module (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathkkb authored Feb 10, 2021
1 parent 24f2a0f commit 87c8215
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/routes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,5 @@ The routes list contains maps, where each object represents a route. For the nex
| 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 |
| 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 |
| next\_hop\_vpn\_tunnel | URL to a VpnTunnel that should handle matching packets | string | - | yes |
| next\_hop\_ilb | The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets. | string | - | no |
| 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 |
1 change: 1 addition & 0 deletions modules/routes/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ resource "google_compute_route" "route" {
next_hop_instance = lookup(each.value, "next_hop_instance", null)
next_hop_instance_zone = lookup(each.value, "next_hop_instance_zone", null)
next_hop_vpn_tunnel = lookup(each.value, "next_hop_vpn_tunnel", null)
next_hop_ilb = lookup(each.value, "next_hop_ilb", null)
priority = lookup(each.value, "priority", null)

depends_on = [var.module_depends_on]
Expand Down

0 comments on commit 87c8215

Please sign in to comment.