-
Notifications
You must be signed in to change notification settings - Fork 1
/
dns.tf
68 lines (52 loc) · 2.18 KB
/
dns.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
data "google_dns_managed_zone" "main" {
project = var.gcp_shared_infra_project_id
name = var.gcp_dns_managed_zone
}
resource "google_dns_record_set" "poweb" {
project = var.gcp_shared_infra_project_id
name = "${var.instance_name}-poweb.${data.google_dns_managed_zone.main.dns_name}"
managed_zone = data.google_dns_managed_zone.main.name
type = "A"
ttl = 300
rrdatas = [module.gateway.load_balancer_ip_address]
}
resource "google_dns_record_set" "pohttp" {
project = var.gcp_shared_infra_project_id
name = "${var.instance_name}-pohttp.${data.google_dns_managed_zone.main.dns_name}"
managed_zone = data.google_dns_managed_zone.main.name
type = "A"
ttl = 300
rrdatas = [module.gateway.load_balancer_ip_address]
}
resource "google_dns_record_set" "cogrpc" {
project = var.gcp_shared_infra_project_id
name = "${var.instance_name}-cogrpc.${data.google_dns_managed_zone.main.dns_name}"
managed_zone = data.google_dns_managed_zone.main.name
type = "A"
ttl = 300
rrdatas = [module.gateway.load_balancer_ip_address]
}
resource "google_dns_record_set" "awala_gsc_srv" {
project = var.gcp_shared_infra_project_id
name = "_awala-gsc._tcp.${var.instance_name}.${data.google_dns_managed_zone.main.dns_name}"
managed_zone = data.google_dns_managed_zone.main.name
type = "SRV"
ttl = 300
rrdatas = ["0 1 443 ${google_dns_record_set.poweb.name}"]
}
resource "google_dns_record_set" "awala_pdc_srv" {
project = var.gcp_shared_infra_project_id
name = "_awala-pdc._tcp.${var.instance_name}.${data.google_dns_managed_zone.main.dns_name}"
managed_zone = data.google_dns_managed_zone.main.name
type = "SRV"
ttl = 300
rrdatas = ["0 1 443 ${google_dns_record_set.pohttp.name}"]
}
resource "google_dns_record_set" "awala_crc_srv" {
project = var.gcp_shared_infra_project_id
name = "_awala-crc._tcp.${var.instance_name}.${data.google_dns_managed_zone.main.dns_name}"
managed_zone = data.google_dns_managed_zone.main.name
type = "SRV"
ttl = 300
rrdatas = ["0 1 443 ${google_dns_record_set.cogrpc.name}"]
}