-
Notifications
You must be signed in to change notification settings - Fork 2
/
dns.tf
39 lines (35 loc) · 1.11 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
// --- DNS Configuration --- //
// Entry for Open Target API GLB
resource "google_dns_record_set" "dns_a_api_glb" {
// Common
project = var.config_dns_project_id
managed_zone = var.config_dns_managed_zone_name
type = "A"
ttl = 5
// Entry
name = local.dns_platform_api_dns_name
rrdatas = [module.glb_platform.external_ip]
}
// Entry for Open Targets AI API
resource "google_dns_record_set" "dns_a_ai_api" {
// Common
project = var.config_dns_project_id
managed_zone = var.config_dns_managed_zone_name
type = "A"
ttl = 5
// Entry
name = local.dns_platform_openai_api_dns_name
rrdatas = [module.glb_platform.external_ip]
}
// Entry for Open Targets Platform Web Application
resource "google_dns_record_set" "dns_a_webapp_glb" {
count = length(local.dns_platform_webapp_domain_names)
// Common
project = var.config_dns_project_id
managed_zone = var.config_dns_managed_zone_name
type = "A"
ttl = 5
// Entry
name = local.dns_platform_webapp_domain_names[count.index]
rrdatas = [module.glb_platform.external_ip]
}