-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroute_53_ronaldcantor_com.tf
89 lines (79 loc) · 2.78 KB
/
route_53_ronaldcantor_com.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
# ------------------------------------------------------------------------------------------
# ronaldcantor.com
resource "aws_route53_record" "ronaldcantor_com__SOA" {
zone_id = aws_route53_zone.hosted_zones["ronaldcantor.com"].zone_id
name = "ronaldcantor.com"
type = "SOA"
ttl = "900"
records = [
"${aws_route53_zone.hosted_zones["ronaldcantor.com"].name_servers[0]}. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400",
]
}
resource "aws_route53_record" "ronaldcantor_com__NS" {
zone_id = aws_route53_zone.hosted_zones["ronaldcantor.com"].zone_id
name = "ronaldcantor.com"
type = "NS"
ttl = "172800"
records = [
"${aws_route53_zone.hosted_zones["ronaldcantor.com"].name_servers[0]}.",
"${aws_route53_zone.hosted_zones["ronaldcantor.com"].name_servers[1]}.",
"${aws_route53_zone.hosted_zones["ronaldcantor.com"].name_servers[2]}.",
"${aws_route53_zone.hosted_zones["ronaldcantor.com"].name_servers[3]}.",
]
}
resource "aws_route53_record" "ronaldcantor_com__A" {
zone_id = aws_route53_zone.hosted_zones["ronaldcantor.com"].zone_id
name = "ronaldcantor.com"
type = "A"
alias {
name = aws_cloudfront_distribution.ronaldcantor_com.domain_name
zone_id = var.cloudfront_distribution_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "www_ronaldcantor_com__A" {
zone_id = aws_route53_zone.hosted_zones["ronaldcantor.com"].zone_id
name = "www.ronaldcantor.com"
type = "A"
alias {
name = aws_cloudfront_distribution.ronaldcantor_com.domain_name
zone_id = var.cloudfront_distribution_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "ronaldcantor_com__MX" {
zone_id = aws_route53_zone.hosted_zones["ronaldcantor.com"].zone_id
name = "ronaldcantor.com"
type = "MX"
ttl = "3600"
records = [
"0 .",
]
}
resource "aws_route53_record" "ronaldcantor_com__TXT" {
zone_id = aws_route53_zone.hosted_zones["ronaldcantor.com"].zone_id
name = "ronaldcantor.com"
type = "TXT"
ttl = "3600"
records = [
"v=spf1 -all",
]
}
resource "aws_route53_record" "dmarc_ronaldcantor_com__TXT" {
zone_id = aws_route53_zone.hosted_zones["ronaldcantor.com"].zone_id
name = "_dmarc.ronaldcantor.com"
type = "TXT"
ttl = "3600"
records = [
"v=DMARC1; p=reject; rua=mailto:[email protected],mailto:[email protected]; ruf=mailto:[email protected]; fo=1; pct=100; adkim=s; aspf=s",
]
}
resource "aws_route53_record" "domainkey_ronaldcantor_com__TXT" {
zone_id = aws_route53_zone.hosted_zones["ronaldcantor.com"].zone_id
name = "*._domainkey.ronaldcantor.com"
type = "TXT"
ttl = "3600"
records = [
"v=DKIM1; p=",
]
}