Skip to content

Commit 8a9131c

Browse files
committed
move rubykaigi.net rrset to roadworker
1 parent b5ec35c commit 8a9131c

2 files changed

Lines changed: 35 additions & 44 deletions

File tree

route53/rubykaigi.net.route

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,40 @@
44
# Use Terraform as much as possible.
55

66
template 'rubykaigi.net-common' do
7-
ignore 'rubykaigi.net.'
8-
ignore '_dmarc.rubykaigi.net.'
7+
rrset "rubykaigi.net.", "A" do
8+
dns_name("d3tsts1uyuh9og.cloudfront.net.", evaluate_target_health: true)
9+
end
10+
11+
rrset "rubykaigi.net.", "AAAA" do
12+
dns_name("d3tsts1uyuh9og.cloudfront.net.", evaluate_target_health: true)
13+
end
14+
15+
rrset "rubykaigi.net.", "CAA" do
16+
ttl 60
17+
resource_records(
18+
'0 issue "letsencrypt.org"',
19+
'0 issue "amazonaws.com"',
20+
)
21+
end
22+
23+
rrset "rubykaigi.net.", "MX" do
24+
ttl 60
25+
resource_records "0 ."
26+
end
27+
28+
rrset "rubykaigi.net.", "TXT" do
29+
ttl 60
30+
resource_records(
31+
'"v=spf1 -all"',
32+
)
33+
end
34+
35+
rrset "_dmarc.rubykaigi.net.", "TXT" do
36+
ttl 60
37+
resource_records(
38+
'"v=DMARC1; p=reject"',
39+
)
40+
end
941

1042
ignore 'takeout-app-origin.rubykaigi.net.'
1143
ignore 'rko-router.rubykaigi.net.' # ruby-no-kai/rubykaigi.org//tf

tf/core/route53.tf

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -43,45 +43,4 @@ locals {
4343
rubykaigi_net_zones = toset([aws_route53_zone.rubykaigi-net_public.zone_id, aws_route53_zone.rubykaigi-net_private.zone_id])
4444
}
4545

46-
# common
47-
resource "aws_route53_record" "caa-rubykaigi_net" {
48-
for_each = local.rubykaigi_net_zones
49-
name = "rubykaigi.net."
50-
zone_id = each.value
51-
type = "CAA"
52-
ttl = 60
53-
records = [
54-
"0 issue \"amazonaws.com\"",
55-
"0 issue \"letsencrypt.org\"",
56-
]
57-
}
58-
resource "aws_route53_record" "mx-rubykaigi_net" {
59-
for_each = local.rubykaigi_net_zones
60-
name = "rubykaigi.net."
61-
zone_id = each.value
62-
type = "MX"
63-
ttl = 60
64-
records = [
65-
"0 .", # null mx
66-
]
67-
}
68-
resource "aws_route53_record" "txt-rubykaigi_net" {
69-
for_each = local.rubykaigi_net_zones
70-
name = "rubykaigi.net."
71-
zone_id = each.value
72-
type = "TXT"
73-
ttl = 60
74-
records = [
75-
"v=spf1 -all",
76-
]
77-
}
78-
resource "aws_route53_record" "dmarc-rubykaigi_net" {
79-
for_each = local.rubykaigi_net_zones
80-
name = "_dmarc.rubykaigi.net."
81-
zone_id = each.value
82-
type = "TXT"
83-
ttl = 60
84-
records = [
85-
"v=DMARC1; p=reject",
86-
]
87-
}
46+
# see also //route53/rubykaigi.net.route

0 commit comments

Comments
 (0)