This repository has been archived by the owner on Jul 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdigital.gov.tf
126 lines (111 loc) · 3.41 KB
/
digital.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
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
resource "aws_route53_zone" "digital_toplevel" {
name = "digital.gov"
tags {
Project = "dns"
}
}
resource "aws_route53_record" "digital_gov_apex" {
zone_id = "${aws_route53_zone.digital_toplevel.zone_id}"
name = "digital.gov."
type = "A"
alias {
name = "d2q1i25any8vwy.cloudfront.net."
zone_id = "${local.cloudfront_zone_id}"
evaluate_target_health = false
}
}
# www.digital.gov — redirects to digital.gov through pages_redirect
resource "aws_route53_record" "digital_gov_www" {
zone_id = "${aws_route53_zone.digital_toplevel.zone_id}"
name = "www.digital.gov."
type = "A"
alias {
name = "d11gdxqvugzxkr.cloudfront.net."
zone_id = "${local.cloudfront_zone_id}"
evaluate_target_health = false
}
}
resource "aws_route53_record" "demo_digital_gov_a" {
zone_id = "${aws_route53_zone.digital_toplevel.zone_id}"
name = "demo.digital.gov."
type = "A"
alias {
name = "d1f2igtqmwwbgm.cloudfront.net."
zone_id = "${local.cloudfront_zone_id}"
evaluate_target_health = false
}
}
# USWDS -------------------------------
# designsystem.digital.gov — A
resource "aws_route53_record" "designsystem_digital_gov_a" {
zone_id = "${aws_route53_zone.digital_toplevel.zone_id}"
name = "designsystem.digital.gov."
type = "A"
alias {
name = "dlu3fkwowya06.cloudfront.net."
zone_id = "${local.cloud_gov_cloudfront_zone_id}"
evaluate_target_health = false
}
}
# designsystem.digital.gov — AAAA
resource "aws_route53_record" "designsystem_digital_gov_aaaa" {
zone_id = "${aws_route53_zone.digital_toplevel.zone_id}"
name = "designsystem.digital.gov."
type = "AAAA"
alias {
name = "dlu3fkwowya06.cloudfront.net."
zone_id = "${local.cloud_gov_cloudfront_zone_id}"
evaluate_target_health = false
}
}
# components.designsystem.digital.gov — A
resource "aws_route53_record" "components_designsystem_digital_gov_a" {
zone_id = "${aws_route53_zone.digital_toplevel.zone_id}"
name = "components.designsystem.digital.gov."
type = "A"
alias {
name = "dxngby1kewpe.cloudfront.net."
zone_id = "${local.cloud_gov_cloudfront_zone_id}"
evaluate_target_health = false
}
}
# components.designsystem.digital.gov — AAA
resource "aws_route53_record" "components_designsystem_digital_gov_aaaa" {
zone_id = "${aws_route53_zone.digital_toplevel.zone_id}"
name = "components.designsystem.digital.gov."
type = "AAAA"
alias {
name = "dxngby1kewpe.cloudfront.net."
zone_id = "${local.cloud_gov_cloudfront_zone_id}"
evaluate_target_health = false
}
}
# emerging.digital.gov — A -------------------------------
resource "aws_route53_record" "emerging_digital_gov_a" {
zone_id = "${aws_route53_zone.digital_toplevel.zone_id}"
name = "emerging.digital.gov."
type = "A"
alias {
name = "d2b40qcr6kbxp7.cloudfront.net."
zone_id = "${local.cloud_gov_cloudfront_zone_id}"
evaluate_target_health = false
}
}
# BOD
resource "aws_route53_record" "digital_gov_dmarc_digital_gov_txt" {
zone_id = "${aws_route53_zone.digital_toplevel.zone_id}"
name = "digital.gov."
type = "TXT"
ttl = 300
records = ["${local.spf_no_mail}"]
}
resource "aws_route53_record" "digital_gov__dmarc_digital_gov_txt" {
zone_id = "${aws_route53_zone.digital_toplevel.zone_id}"
name = "_dmarc.digital.gov."
type = "TXT"
ttl = 300
records = ["${local.dmarc_reject}"]
}
output "digital_ns" {
value="${aws_route53_zone.digital_toplevel.name_servers}"
}