forked from 18F/dns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vote.gov.tf
93 lines (80 loc) · 2.41 KB
/
vote.gov.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
resource "aws_route53_zone" "vote_gov_zone" {
name = "vote.gov."
tags = {
Project = "dns"
}
}
resource "aws_route53_record" "vote_gov_vote_gov_a" {
zone_id = aws_route53_zone.vote_gov_zone.zone_id
name = "vote.gov."
type = "A"
alias {
name = "d2s5gzwyabrtbd.cloudfront.net"
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "vote_gov_vote_gov_aaaa" {
zone_id = aws_route53_zone.vote_gov_zone.zone_id
name = "vote.gov."
type = "AAAA"
alias {
name = "d2s5gzwyabrtbd.cloudfront.net"
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "vote_gov_01872332dafeeb93b927e2d9e9b2c53d_vote_gov_cname" {
zone_id = aws_route53_zone.vote_gov_zone.zone_id
name = "01872332dafeeb93b927e2d9e9b2c53d.vote.gov."
type = "CNAME"
ttl = 5
records = ["799928229b505d839d0482696552a70fb9c456e0.comodoca.com."]
}
#module "vote_gov__www_vote_gov_redirect" {
# source = "mediapop/redirect/aws"
# version = "1.3.0"
# domains = {
# "vote.gov." = ["www.vote.gov"]
# }
# redirect_to = "vote.gov"
#}
resource "aws_route53_record" "new_vote_gov_cname" {
zone_id = aws_route53_zone.vote_gov_zone.zone_id
name = "new.vote.gov."
type = "CNAME"
ttl = 120
records = ["d2fr19uaud3s4h.cloudfront.net."]
}
resource "aws_route53_record" "beta_vote_gov_cname" {
zone_id = aws_route53_zone.vote_gov_zone.zone_id
name = "beta.vote.gov."
type = "CNAME"
ttl = 120
records = ["di5gyq0wmd14q.cloudfront.net."]
}
resource "aws_route53_record" "staging_vote_gov_cname" {
zone_id = aws_route53_zone.vote_gov_zone.zone_id
name = "staging.vote.gov."
type = "CNAME"
ttl = 120
records = ["d3rjcr7wk6cbst.cloudfront.net."]
}
resource "aws_route53_record" "staging_vote_gov_txt" {
zone_id = aws_route53_zone.vote_gov_zone.zone_id
name = "_acme-challenge.staging.vote.gov."
type = "TXT"
ttl = 120
records = ["-IQdOpZZcQmMfAedslZpwYCbAsFPC92MLVyVzh53uqc"]
}
module "vote_gov__email_security" {
source = "./email_security"
zone_id = aws_route53_zone.vote_gov_zone.zone_id
txt_records = [
local.spf_no_mail,
"blitz=mu-cbb11232-c5e05a4b-b13f3a3c-060b48f0"
]
}
output "vote_gov_ns" {
value = aws_route53_zone.vote_gov_zone.name_servers
}