forked from 18F/dns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusability.gov.tf
75 lines (63 loc) · 2.2 KB
/
usability.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
# ------------------------------------------
# WELCOME to the DNS records for Usability.gov
# Before making edits, please reach out to #digitalgov (in TTS Slack) or email [email protected]
# ------------------------------------------
resource "aws_route53_zone" "usability_toplevel" {
name = "usability.gov"
tags = {
Project = "dns"
}
}
resource "aws_route53_record" "usability_gov_apex" {
zone_id = aws_route53_zone.usability_toplevel.zone_id
name = "usability.gov."
type = "A"
alias {
name = "d2yghjaoiuwpg5.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "usability_gov_apex_aaaa" {
zone_id = aws_route53_zone.usability_toplevel.zone_id
name = "usability.gov."
type = "AAAA"
alias {
name = "d2yghjaoiuwpg5.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
# www.usability.gov — redirects to usability.gov through pages_redirect
resource "aws_route53_record" "usability_gov_www" {
zone_id = aws_route53_zone.usability_toplevel.zone_id
name = "www.usability.gov."
type = "CNAME"
ttl = 120
records = ["d3882ehkypc0dh.cloudfront.net."]
}
# Compliance and ACME records -------------------------------
module "usability_gov__email_security" {
source = "./email_security"
zone_id = aws_route53_zone.usability_toplevel.zone_id
}
# ACME Challenge records
# www.usability.gov TXT / ACME Challenge
resource "aws_route53_record" "www_usability_gov__acme-challenge_txt" {
zone_id = aws_route53_zone.usability_toplevel.zone_id
name = "_acme-challenge.www.usability.gov."
type = "TXT"
ttl = 120
records = ["9F_gDwJzeGpnWpbGphx1dLYa2GE9EYZuKCEH-qTck-8"]
}
# usability.gov TXT / ACME Challenge
resource "aws_route53_record" "usability_gov__acme-challenge_txt" {
zone_id = aws_route53_zone.usability_toplevel.zone_id
name = "_acme-challenge.usability.gov."
type = "TXT"
ttl = 120
records = ["mHs3DO2svQSyyvxRfnBP-vlV-ErJr9naPCxhnY_HADI"]
}
output "usability_ns" {
value = aws_route53_zone.usability_toplevel.name_servers
}