-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
51 lines (45 loc) · 1.53 KB
/
main.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
data "aws_route53_zone" "this" {
name = "saschaeglau.com"
}
resource "aws_route53_record" "mx" {
zone_id = data.aws_route53_zone.this.zone_id
name = "saschaeglau.com"
type = "MX"
ttl = "300"
records = ["10 mail.protonmail.ch", "20 mailsec.protonmail.ch"]
}
resource "aws_route53_record" "dmarc" {
zone_id = data.aws_route53_zone.this.zone_id
name = "_dmarc"
type = "TXT"
ttl = "300"
records = ["v=DMARC1; p=none"]
}
resource "aws_route53_record" "dkim" {
zone_id = data.aws_route53_zone.this.zone_id
name = "protonmail._domainkey"
type = "CNAME"
ttl = "300"
records = ["protonmail.domainkey.duhrgqynk5kyflwwproro3mf2veekolrwbn4ns6xazgnc7n7qwwrq.domains.proton.ch."]
}
resource "aws_route53_record" "dkim2" {
zone_id = data.aws_route53_zone.this.zone_id
name = "protonmail2._domainkey"
type = "CNAME"
ttl = "300"
records = ["protonmail2.domainkey.duhrgqynk5kyflwwproro3mf2veekolrwbn4ns6xazgnc7n7qwwrq.domains.proton.ch."]
}
resource "aws_route53_record" "dkim3" {
zone_id = data.aws_route53_zone.this.zone_id
name = "protonmail3._domainkey"
type = "CNAME"
ttl = "300"
records = ["protonmail3.domainkey.duhrgqynk5kyflwwproro3mf2veekolrwbn4ns6xazgnc7n7qwwrq.domains.proton.ch."]
}
resource "aws_route53_record" "txt" {
zone_id = data.aws_route53_zone.this.zone_id
name = "saschaeglau.com"
type = "TXT"
ttl = "300"
records = ["v=spf1 include:_spf.protonmail.ch mx ~all", "protonmail-verification=d6a8055393d0d756e9abefe1f65738ec50638e83"]
}