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 pathconnect.gov.tf
57 lines (50 loc) · 1.72 KB
/
connect.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
resource "aws_route53_zone" "connect_gov_zone" {
name = "connect.gov."
tags {
Project = "dns"
}
}
resource "aws_route53_record" "connect_gov_connect_gov_a" {
zone_id = "${aws_route53_zone.connect_gov_zone.zone_id}"
name = "connect.gov"
type = "A"
alias {
name = "d1tqmxfevhun0x.cloudfront.net"
zone_id = "${local.cloudfront_zone_id}"
evaluate_target_health = true
}
}
resource "aws_route53_record" "www_connect_gov_connect_gov_cname" {
zone_id = "${aws_route53_zone.connect_gov_zone.zone_id}"
name = "www.connect.gov"
type = "A"
alias {
name = "d1tqmxfevhun0x.cloudfront.net"
zone_id = "${local.cloudfront_zone_id}"
evaluate_target_health = true
}
}
output "connect_gov_ns" {
value="${aws_route53_zone.connect_gov_zone.name_servers}"
}
resource "aws_route53_record" "connect_gov_connect_gov_mx" {
zone_id = "${aws_route53_zone.connect_gov_zone.zone_id}"
name = "connect.gov."
type = "MX"
ttl = 300
records = ["1 aspmx.l.google.com", "5 alt2.aspmx.l.google.com", "5 alt1.aspmx.l.google.com", "10 alt3.aspmx.l.google.com", "10 alt4.aspmx.l.google.com"]
}
resource "aws_route53_record" "connect_gov_txt" {
zone_id = "${aws_route53_zone.connect_gov_zone.zone_id}"
name = "connect.gov"
type = "TXT"
ttl = 1800
records = ["v=spf1 ~all", "google-site-verification=j3qyXzcDt_O3t0sdYy6FCQlYJnV5ASd0GYIhicPPzOg"]
}
resource "aws_route53_record" "connect_gov_dmarc_txt" {
zone_id = "${aws_route53_zone.connect_gov_zone.zone_id}"
name = "_dmarc.connect.gov"
ttl = "900"
type = "TXT"
records = ["v=DMARC1; p=none; pct=100; fo=1; ri=3600; rua=mailto:[email protected],mailto:[email protected],mailto:[email protected]; ruf=mailto:[email protected]"]
}