forked from 18F/dns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
usa.gov.tf
56 lines (46 loc) · 1.35 KB
/
usa.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
resource "aws_route53_zone" "usa_gov_zone" {
name = "usa.gov."
tags = {
Project = "dns"
}
}
resource "aws_route53_record" "usa_gov_analytics_usa_gov_a" {
zone_id = aws_route53_zone.usa_gov_zone.zone_id
name = "analytics.usa.gov."
type = "A"
alias {
name = "dkm80j4hktly2.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "usa_gov_analytics_usa_gov_aaaa" {
zone_id = aws_route53_zone.usa_gov_zone.zone_id
name = "analytics.usa.gov."
type = "AAAA"
alias {
name = "dkm80j4hktly2.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
# USWDS ------------------------------------------------
#module "usa_gov__components_standards_usa_gov_redirect" {
# source = "mediapop/redirect/aws"
# version = "1.2.1"
# domains = {
# "usa.gov." = ["components.standards.usa.gov"]
# }
# redirect_to = "components.designsystem.digital.gov"
#}
#module "usa_gov__standards_usa_gov_redirect" {
# source = "mediapop/redirect/aws"
# version = "1.2.1"
# domains = {
# "usa.gov." = ["standards.usa.gov"]
# }
# redirect_to = "designsystem.digital.gov"
#}
output "usa_gov_ns" {
value = aws_route53_zone.usa_gov_zone.name_servers
}