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 pathplainlanguage.gov.tf
81 lines (70 loc) · 2.08 KB
/
plainlanguage.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
resource "aws_route53_zone" "plainlanguage_toplevel" {
name = "plainlanguage.gov"
tags {
Project = "dns"
}
}
resource "aws_route53_record" "plainlanguage_apex" {
zone_id = "${aws_route53_zone.plainlanguage_toplevel.zone_id}"
name = "plainlanguage.gov."
type = "A"
alias {
name = "d1qy5q7pncs690.cloudfront.net."
zone_id = "${local.cloud_gov_cloudfront_zone_id}"
evaluate_target_health = false
}
}
resource "aws_route53_record" "plainlanguage_www" {
zone_id = "${aws_route53_zone.plainlanguage_toplevel.zone_id}"
name = "www.plainlanguage.gov."
type = "A"
alias {
name = "d1qy5q7pncs690.cloudfront.net."
zone_id = "${local.cloud_gov_cloudfront_zone_id}"
evaluate_target_health = false
}
}
resource "aws_route53_record" "demo_plainlanguage_a" {
zone_id = "${aws_route53_zone.plainlanguage_toplevel.zone_id}"
name = "demo.plainlanguage.gov."
type = "A"
alias {
name = "d18mn70cbq9e90.cloudfront.net."
zone_id = "${local.cloud_gov_cloudfront_zone_id}"
evaluate_target_health = false
}
}
resource "aws_route53_record" "plainlanguage_google_mx" {
zone_id = "${aws_route53_zone.plainlanguage_toplevel.zone_id}"
name = "plainlanguage.gov."
type = "MX"
ttl = "300"
records = [
"1 aspmx.l.google.com.",
"5 alt1.aspmx.l.google.com.",
"5 alt2.aspmx.l.google.com.",
"10 alt3.aspmx.l.google.com.",
"10 alt4.aspmx.l.google.com."
]
}
resource "aws_route53_record" "plainlanguage_google_txt" {
zone_id = "${aws_route53_zone.plainlanguage_toplevel.zone_id}"
name = "plainlanguage.gov."
type = "TXT"
ttl = 600
records = [
"google-site-verification=dgYaMRA2hd9PDUV1zEcRyWmTOVZCbkbP3vXd4isEZLI",
"v=spf1 include:_spf.google.com include:spf_sa.gsa.gov ~all"
]
}
# BOD
resource "aws_route53_record" "plainlanguage_gov__dmarc_plainlanguage_gov_txt" {
zone_id = "${aws_route53_zone.plainlanguage_toplevel.zone_id}"
name = "_dmarc.plainlanguage.gov."
type = "TXT"
ttl = 300
records = ["${local.dmarc_10}"]
}
output "plainlanguage_ns" {
value="${aws_route53_zone.plainlanguage_toplevel.name_servers}"
}