-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
47 lines (40 loc) · 1.23 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
resource "aws_route53_record" "root_txt" {
name = var.route53_zone_name
zone_id = var.route53_zone_id
allow_overwrite = true
type = "TXT"
ttl = var.record_ttl
records = var.root_txt
}
resource "aws_route53_record" "dmarc" {
name = "_dmarc.${var.route53_zone_name}"
zone_id = var.route53_zone_id
allow_overwrite = true
type = "TXT"
ttl = var.record_ttl
records = var.dmarc_txt
}
resource "aws_route53_record" "mx" {
name = var.route53_zone_name
zone_id = var.route53_zone_id
allow_overwrite = true
type = "MX"
ttl = var.record_ttl
records = var.mx_list
}
resource "aws_route53_record" "dkim_catchall" {
name = "*._domainkey.${var.route53_zone_name}"
zone_id = var.route53_zone_id
allow_overwrite = true
type = "TXT"
ttl = var.record_ttl
records = var.dkim_catchall
}
resource "aws_route53_record" "caa" {
name = var.route53_zone_name
zone_id = var.route53_zone_id
allow_overwrite = true
type = "CAA"
ttl = var.record_ttl
records = var.caa_list
}