-
Notifications
You must be signed in to change notification settings - Fork 16
/
route.tf
29 lines (27 loc) · 1.07 KB
/
route.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
resource "google_compute_route" "nat-pri" {
name = "${var.env_prefix}-nat-pri"
network = "${google_compute_network.pks-network.name}"
dest_range = "0.0.0.0/0"
priority = 800
tags = ["${var.env_prefix}"]
next_hop_instance = "${google_compute_instance.nat-instance-pri.name}"
next_hop_instance_zone = "${google_compute_instance.nat-instance-pri.zone}"
}
resource "google_compute_route" "nat-sec" {
name = "${var.env_prefix}-nat-sec"
network = "${google_compute_network.pks-network.name}"
dest_range = "0.0.0.0/0"
priority = 800
tags = ["${var.env_prefix}"]
next_hop_instance = "${google_compute_instance.nat-instance-sec.name}"
next_hop_instance_zone = "${google_compute_instance.nat-instance-sec.zone}"
}
resource "google_compute_route" "nat-ter" {
name = "${var.env_prefix}-nat-ter"
network = "${google_compute_network.pks-network.name}"
dest_range = "0.0.0.0/0"
priority = 800
tags = ["${var.env_prefix}"]
next_hop_instance = "${google_compute_instance.nat-instance-ter.name}"
next_hop_instance_zone = "${google_compute_instance.nat-instance-ter.zone}"
}