-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathplainlanguage.gov.tf
84 lines (72 loc) · 2.5 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
82
83
84
resource "aws_route53_zone" "plainlanguage_toplevel" {
name = "plainlanguage.gov"
tags = {
Project = "dns"
}
}
resource "aws_route53_record" "plainlanguage_apex_alias" {
zone_id = aws_route53_zone.plainlanguage_toplevel.zone_id
name = "plainlanguage.gov."
type = "A"
alias {
name = "d2uz68wjkv6tls.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "plainlanguage_apex_alias_aaaa" {
zone_id = aws_route53_zone.plainlanguage_toplevel.zone_id
name = "plainlanguage.gov."
type = "AAAA"
alias {
name = "d2uz68wjkv6tls.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "plainlanguage_acme_challenge_cname" {
zone_id = aws_route53_zone.plainlanguage_toplevel.zone_id
name = "_acme-challenge.plainlanguage.gov."
type = "CNAME"
ttl = 120
records = ["_acme-challenge.plainlanguage.gov.external-domains-production.cloud.gov."]
}
resource "aws_route53_record" "plainlanguage_www_cname" {
zone_id = aws_route53_zone.plainlanguage_toplevel.zone_id
name = "www.plainlanguage.gov."
type = "CNAME"
ttl = 120
records = ["www.plainlanguage.gov.external-domains-production.cloud.gov."]
}
resource "aws_route53_record" "plainlanguage_www_acme_challenge_cname" {
zone_id = aws_route53_zone.plainlanguage_toplevel.zone_id
name = "_acme-challenge.www.plainlanguage.gov."
type = "CNAME"
ttl = 120
records = ["_acme-challenge.www.plainlanguage.gov.external-domains-production.cloud.gov."]
}
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."
]
}
module "plainlanguage_gov__email_security" {
source = "./email_security"
zone_id = aws_route53_zone.plainlanguage_toplevel.zone_id
txt_records = [
"google-site-verification=dgYaMRA2hd9PDUV1zEcRyWmTOVZCbkbP3vXd4isEZLI",
"v=spf1 include:_spf.google.com include:spf_sa.gsa.gov ~all",
"google-site-verification=c2d7btaIGhlOnqXV6qkYGIhGX7fCIQepnpuDhmjbfkw"
]
}
output "plainlanguage_ns" {
value = aws_route53_zone.plainlanguage_toplevel.name_servers
}