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 pathinnovation.gov.tf
64 lines (54 loc) · 1.54 KB
/
innovation.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
resource "aws_route53_zone" "innovation_toplevel" {
name = "innovation.gov"
tags {
Project = "dns"
}
}
resource "aws_route53_record" "innovation_gov_apex" {
zone_id = "${aws_route53_zone.innovation_toplevel.zone_id}"
name = "innovation.gov."
type = "A"
alias {
name = "d2ntl68ywjm643.cloudfront.net."
zone_id = "${local.cloudfront_zone_id}"
evaluate_target_health = false
}
}
resource "aws_route53_record" "innovation_gov_www" {
zone_id = "${aws_route53_zone.innovation_toplevel.zone_id}"
name = "www.innovation.gov."
type = "A"
alias {
name = "d2ntl68ywjm643.cloudfront.net."
zone_id = "${local.cloudfront_zone_id}"
evaluate_target_health = false
}
}
resource "aws_route53_record" "demo_innovation_gov_a" {
zone_id = "${aws_route53_zone.innovation_toplevel.zone_id}"
name = "demo.innovation.gov."
type = "A"
alias {
name = "d3am9l7wwd0yie.cloudfront.net."
zone_id = "${local.cloudfront_zone_id}"
evaluate_target_health = false
}
}
# BOD
resource "aws_route53_record" "innovation_gov_dmarc_innovation_gov_txt" {
zone_id = "${aws_route53_zone.innovation_toplevel.zone_id}"
name = "innovation.gov."
type = "TXT"
ttl = 300
records = ["${local.spf_no_mail}"]
}
resource "aws_route53_record" "innovation_gov__dmarc_innovation_gov_txt" {
zone_id = "${aws_route53_zone.innovation_toplevel.zone_id}"
name = "_dmarc.innovation.gov."
type = "TXT"
ttl = 300
records = ["${local.dmarc_reject}"]
}
output "innovation_ns" {
value="${aws_route53_zone.innovation_toplevel.name_servers}"
}