-
Notifications
You must be signed in to change notification settings - Fork 2
/
dns.tf
43 lines (40 loc) · 1002 Bytes
/
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
resource "aws_route53_record" "route_53_cloud_txt" {
zone_id = module.production_env.zone_id
name = "cloud.seagl.org"
type = "TXT"
ttl = "300"
records = [
"v=spf1 include:_spf.osuosl.org ~all"
]
}
resource "aws_route53_record" "email_dkim_hubspot_records" {
for_each = {
"hs1-40081384" : "seagl-org.hs12a.dkim.hubspotemail.net",
"hs2-40081384" : "seagl-org.hs12b.dkim.hubspotemail.net"
}
zone_id = module.production_env.zone_id
name = "${each.key}._domainkey.${var.email_domain_name}"
type = "CNAME"
ttl = "300"
records = [
each.value
]
}
resource "aws_route53_record" "cloud-a" {
zone_id = module.production_env.zone_id
name = "cloud.seagl.org"
type = "A"
ttl = "300"
records = [
"140.211.9.53"
]
}
resource "aws_route53_record" "cloud-aaaa" {
zone_id = module.production_env.zone_id
name = "cloud.seagl.org"
type = "AAAA"
ttl = "300"
records = [
"2605:bc80:3010:104::8cd3:935"
]
}