-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathbenefits.gov.tf
80 lines (69 loc) · 2.36 KB
/
benefits.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
resource "aws_route53_zone" "benefits_gov_zone" {
name = "benefits.gov"
tags = {
Project = "dns"
}
}
resource "aws_route53_record" "benefits_gov_apex" {
zone_id = aws_route53_zone.benefits_gov_zone.zone_id
name = "benefits.gov."
type = "A"
alias {
name = "d3bi0ia5r11uox.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "benefits_gov_apex_aaaa" {
zone_id = aws_route53_zone.benefits_gov_zone.zone_id
name = "benefits.gov."
type = "AAAA"
alias {
name = "d3bi0ia5r11uox.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "benefits_gov_acmechallenge" {
zone_id = aws_route53_zone.benefits_gov_zone.zone_id
name = "_acme-challenge.benefits.gov."
type = "CNAME"
ttl = 300
records = ["_acme-challenge.benefits.gov.external-domains-production.cloud.gov."]
}
resource "aws_route53_record" "benefits_gov_www_acmechallenge" {
zone_id = aws_route53_zone.benefits_gov_zone.zone_id
name = "_acme-challenge.www.benefits.gov."
type = "CNAME"
ttl = 300
records = ["_acme-challenge.www.benefits.gov.external-domains-production.cloud.gov."]
}
resource "aws_route53_record" "benefits_gov_ssabest_acmechallenge" {
zone_id = aws_route53_zone.benefits_gov_zone.zone_id
name = "_acme-challenge.ssabest.benefits.gov."
type = "CNAME"
ttl = 300
records = ["_acme-challenge.ssabest.benefits.gov.external-domains-production.cloud.gov."]
}
resource "aws_route53_record" "benefits_gov_ssabest" {
zone_id = aws_route53_zone.benefits_gov_zone.zone_id
name = "ssabest.benefits.gov."
type = "CNAME"
ttl = 300
records = ["ssabest.benefits.gov.external-domains-production.cloud.gov."]
}
resource "aws_route53_record" "benefits_gov_www" {
zone_id = aws_route53_zone.benefits_gov_zone.zone_id
name = "www.benefits.gov."
type = "CNAME"
ttl = 300
records = ["www.benefits.gov.external-domains-production.cloud.gov."]
}
module "benefits_gov_emailsecurity" {
source = "./email_security"
zone_id = aws_route53_zone.benefits_gov_zone.zone_id
txt_records = ["v=spf1 -all"]
}
output "benefits_gov_ns" {
value = aws_route53_zone.benefits_gov_zone.name_servers
}