-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdns.tf
96 lines (93 loc) · 2.17 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
module "address-fe" {
source = "terraform-google-modules/address/google"
version = "4.1.0"
address_type = "EXTERNAL"
global = true
ip_version = "IPV4"
names = ["${local.default_name}-ip"]
project_id = var.project_id
region = var.region
}
module "dns-public-zone" {
source = "terraform-google-modules/cloud-dns/google"
version = "5.3.0"
dnssec_config = {
kind = "dns#managedZoneDnsSecConfig"
non_existence = "nsec3"
state = "on"
}
domain = "${var.domain}."
name = local.default_name
project_id = var.project_id
recordsets = [
{
name = ""
records = module.address-fe.addresses
ttl = 7200
type = "A"
},
{
name = ""
records = ["10 . alpn=\"h3,h2\""]
ttl = 7200
type = "HTTPS"
},
{
name = "www"
records = ["edge.redirect.pizza."]
ttl = 3600
type = "CNAME"
},
{
name = "files"
records = module.address-fe.addresses
ttl = 7200
type = "A"
},
{
name = "files"
records = ["10 ${var.domain}. alpn=\"h3,h2\""]
ttl = 7200
type = "HTTPS"
},
{
name = ""
records = ["0 issue \"pki.goog\"", "0 issue \"sectigo.com\"", "0 issue \"letsencrypt.org\""]
ttl = 7200
type = "CAA"
},
# GitHub
{
name = "_github-challenge-ykzts-technology-organization"
records = ["a0fb7df9f0"]
ttl = 3600
type = "TXT"
},
# SendGrid
{
name = "em7827"
records = ["u26458027.wl028.sendgrid.net."]
ttl = 3600
type = "CNAME"
},
{
name = "s1._domainkey"
records = ["s1.domainkey.u26458027.wl028.sendgrid.net."]
ttl = 3600
type = "CNAME"
},
{
name = "s2._domainkey"
records = ["s2.domainkey.u26458027.wl028.sendgrid.net."]
ttl = 3600
type = "CNAME"
},
{
name = "_dmarc"
records = ["\"v=DMARC1;\" \"p=reject;\" \"rua=mailto:dmarc_agg@vali.email\""]
ttl = 3600
type = "TXT"
},
]
type = "public"
}