-
Notifications
You must be signed in to change notification settings - Fork 1
/
addresses.tf
49 lines (39 loc) · 1.7 KB
/
addresses.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
resource "google_compute_address" "mgmt_pub" {
count = 2
region = var.region
name = "${var.prefix}eip${count.index+1}-mgmt-${local.region_short}"
}
resource "google_compute_address" "ext_priv" {
count = 2
name = "${var.prefix}ip${count.index+1}-ext-${local.region_short}"
region = var.region
address_type = "INTERNAL"
subnetwork = data.google_compute_subnetwork.subnets[0].id
}
resource "google_compute_address" "int_priv" {
count = 2
name = "${var.prefix}ip${count.index+1}-int-${local.region_short}"
region = var.region
address_type = "INTERNAL"
subnetwork = data.google_compute_subnetwork.subnets[1].id
}
resource "google_compute_address" "ilb" {
name = "${var.prefix}ip-ilb-${local.region_short}"
region = var.region
address_type = "INTERNAL"
subnetwork = data.google_compute_subnetwork.subnets[1].id
}
resource "google_compute_address" "hasync_priv" {
count = 2
name = "${var.prefix}ip${count.index+1}-hasync-${local.region_short}"
region = var.region
address_type = "INTERNAL"
subnetwork = data.google_compute_subnetwork.subnets[2].id
}
resource "google_compute_address" "mgmt_priv" {
count = 2
name = "${var.prefix}ip${count.index+1}-mgmt-${local.region_short}"
region = var.region
address_type = "INTERNAL"
subnetwork = data.google_compute_subnetwork.subnets[3].id
}