-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroute_53_centerpointwestapartments_com.tf
148 lines (131 loc) · 5.44 KB
/
route_53_centerpointwestapartments_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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# ------------------------------------------------------------------------------------------
# centerpointwestapartments.com
resource "aws_route53_record" "centerpointwestapartments_com__SOA" {
zone_id = aws_route53_zone.hosted_zones["centerpointwestapartments.com"].zone_id
name = "centerpointwestapartments.com"
type = "SOA"
ttl = "900"
records = [
"${aws_route53_zone.hosted_zones["centerpointwestapartments.com"].name_servers[2]}. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400",
]
}
resource "aws_route53_record" "centerpointwestapartments_com__NS" {
zone_id = aws_route53_zone.hosted_zones["centerpointwestapartments.com"].zone_id
name = "centerpointwestapartments.com"
type = "NS"
ttl = "172800"
records = [
"${aws_route53_zone.hosted_zones["centerpointwestapartments.com"].name_servers[0]}.",
"${aws_route53_zone.hosted_zones["centerpointwestapartments.com"].name_servers[1]}.",
"${aws_route53_zone.hosted_zones["centerpointwestapartments.com"].name_servers[2]}.",
"${aws_route53_zone.hosted_zones["centerpointwestapartments.com"].name_servers[3]}.",
]
}
resource "aws_route53_record" "centerpointwestapartments_com__A" {
zone_id = aws_route53_zone.hosted_zones["centerpointwestapartments.com"].zone_id
name = "centerpointwestapartments.com"
type = "A"
alias {
name = aws_cloudfront_distribution.centerpointwest_com.domain_name
zone_id = var.cloudfront_distribution_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "www_centerpointwestapartments_com__A" {
zone_id = aws_route53_zone.hosted_zones["centerpointwestapartments.com"].zone_id
name = "www.centerpointwestapartments.com"
type = "A"
alias {
name = aws_cloudfront_distribution.centerpointwest_com.domain_name
zone_id = var.cloudfront_distribution_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "mta_sts_centerpointwestapartments_com__A" {
zone_id = aws_route53_zone.hosted_zones["centerpointwestapartments.com"].zone_id
name = "mta-sts.centerpointwestapartments.com"
type = "A"
alias {
name = aws_cloudfront_distribution.mta_sts_centerpointwestapartments_com.domain_name
zone_id = var.cloudfront_distribution_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "centerpointwestapartments_com__MX" {
zone_id = aws_route53_zone.hosted_zones["centerpointwestapartments.com"].zone_id
name = "centerpointwestapartments.com"
type = "MX"
ttl = "3600"
records = [
"0 centerpointwestapartments-com.mail.protection.outlook.com.",
]
}
resource "aws_route53_record" "centerpointwestapartments_com__TXT" {
zone_id = aws_route53_zone.hosted_zones["centerpointwestapartments.com"].zone_id
name = "centerpointwestapartments.com"
type = "TXT"
ttl = "3600"
records = [
"v=spf1 include:spf.protection.outlook.com -all",
]
}
resource "aws_route53_record" "dmarc_centerpointwestapartments_com__TXT" {
zone_id = aws_route53_zone.hosted_zones["centerpointwestapartments.com"].zone_id
name = "_dmarc.centerpointwestapartments.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" "selector1_domainkey_centerpointwestapartments_com__CNAME" {
zone_id = aws_route53_zone.hosted_zones["centerpointwestapartments.com"].zone_id
name = "selector1._domainkey.centerpointwestapartments.com"
type = "CNAME"
ttl = "3600"
records = [
"selector1-centerpointwestapartments-com._domainkey.unitizer.onmicrosoft.com",
]
}
resource "aws_route53_record" "selector2_domainkey_centerpointwestapartments_com__CNAME" {
zone_id = aws_route53_zone.hosted_zones["centerpointwestapartments.com"].zone_id
name = "selector2._domainkey.centerpointwestapartments.com"
type = "CNAME"
ttl = "3600"
records = [
"selector2-centerpointwestapartments-com._domainkey.unitizer.onmicrosoft.com",
]
}
resource "aws_route53_record" "smtp_tls_centerpointwestapartments_com__TXT" {
zone_id = aws_route53_zone.hosted_zones["centerpointwestapartments.com"].zone_id
name = "_smtp._tls.centerpointwestapartments.com"
type = "TXT"
ttl = "3600"
records = [
"v=TLSRPTv1; rua=mailto:[email protected],mailto:[email protected]",
]
}
resource "time_static" "mta_sts_centerpointwestapartments_com__TXT" {
triggers = {
# update when mta-sts.txt file content changes
version = filemd5("websites/mta-sts.centerpointwestapartments.com/.well-known/mta-sts.txt")
}
}
resource "aws_route53_record" "mta_sts_centerpointwestapartments_com__TXT" {
zone_id = aws_route53_zone.hosted_zones["centerpointwestapartments.com"].zone_id
name = "_mta-sts.centerpointwestapartments.com"
type = "TXT"
ttl = "3600"
records = [
"v=STSv1; id=${time_static.mta_sts_centerpointwestapartments_com__TXT.unix};",
]
}
resource "aws_route53_record" "autodiscover_centerpointwestapartments_com__CNAME" {
zone_id = aws_route53_zone.hosted_zones["centerpointwestapartments.com"].zone_id
name = "autodiscover.centerpointwestapartments.com"
type = "CNAME"
ttl = "3600"
records = [
"autodiscover.outlook.com.",
]
}