tf: remove route53, dns is managed in netlify
Route53 is not being used right now and has been replaced by the Netlify DNS. Remove the dead resources, and avoid spending $25.-/month(?) on that.
zimbatm committed
Sep 12, 2021 at 12:13 UTC
59de1fa8e0bf6b7ccb99cfc6d5540c7ee590d774
1 file changed
-167
terraform/route53.tf
deleted
-167
@@ -1,167 +0,0 @@
1
-locals {
2
- host_bastion = "34.254.208.229"
3
- host_chef = "46.4.67.10"
4
- host_www = "54.217.220.47"
5
- host_status = "138.201.32.77"
6
-}
7
-
8
-resource "aws_route53_zone" "nixos" {
9
- name = "nixos.org"
10
-}
11
-
12
-resource "aws_route53_record" "nixos-mx" {
13
- zone_id = aws_route53_zone.nixos.zone_id
14
- name = ""
15
- type = "MX"
16
- ttl = "14300"
17
-
18
- records = [
19
- "10 mx00.udag.de.",
20
- "20 mx01.udag.de.",
21
- ]
22
-}
23
-
24
-resource "aws_route53_record" "nixos-a" {
25
- zone_id = aws_route53_zone.nixos.zone_id
26
- name = ""
27
- type = "A"
28
- ttl = "500"
29
- records = [local.host_www]
30
-}
31
-
32
-resource "aws_route53_record" "nixos-bastion" {
33
- zone_id = aws_route53_zone.nixos.zone_id
34
- name = "bastion"
35
- type = "A"
36
- ttl = "600"
37
- records = [local.host_bastion]
38
-}
39
-
40
-resource "aws_route53_record" "nixos-discourse" {
41
- zone_id = aws_route53_zone.nixos.zone_id
42
- name = "discourse"
43
- type = "CNAME"
44
- ttl = "3600"
45
- records = ["nixos1.hosted-by-discourse.com"]
46
-}
47
-
48
-resource "aws_route53_record" "nixos-cache" {
49
- zone_id = aws_route53_zone.nixos.zone_id
50
- name = "cache"
51
- type = "CNAME"
52
- ttl = "3600"
53
- records = ["dualstack.v2.shared.global.fastly.net"]
54
-}
55
-
56
-resource "aws_route53_record" "nixos-cache-verification" {
57
- zone_id = aws_route53_zone.nixos.zone_id
58
- name = "_d47a77b375708cea087182ee599174c0.cache"
59
- type = "CNAME"
60
- ttl = "600"
61
- records = ["_f437d0ffb520b017f4d72beb71afedf8.acm-validations.aws"]
62
-}
63
-
64
-# NOTE: this should be moved to the nixcon.org domain
65
-resource "aws_route53_record" "nixos-conf" {
66
- zone_id = aws_route53_zone.nixos.zone_id
67
- name = "conf"
68
- type = "CNAME"
69
- ttl = "3600"
70
- records = ["nixconberlin.github.io"]
71
-}
72
-
73
-resource "aws_route53_record" "nixos-conf-wild" {
74
- zone_id = aws_route53_zone.nixos.zone_id
75
- name = "*.conf"
76
- type = "CNAME"
77
- ttl = "3600"
78
- records = ["nixconberlin.github.io"]
79
-}
80
-
81
-resource "aws_route53_record" "nixos-hydra-v4" {
82
- zone_id = aws_route53_zone.nixos.zone_id
83
- name = "hydra"
84
- type = "A"
85
- ttl = "3600"
86
- records = [local.host_chef]
87
-}
88
-
89
-resource "aws_route53_record" "nixos-hydra-v6" {
90
- zone_id = aws_route53_zone.nixos.zone_id
91
- name = "hydra"
92
- type = "AAAA"
93
- ttl = "3600"
94
- records = ["2a01:4f8:140:248f::"]
95
-}
96
-
97
-resource "aws_route53_record" "nixos-planet" {
98
- zone_id = aws_route53_zone.nixos.zone_id
99
- name = "planet"
100
- type = "A"
101
- ttl = "3600"
102
- records = [local.host_www]
103
-}
104
-
105
-resource "aws_route53_record" "nixos-releases" {
106
- zone_id = aws_route53_zone.nixos.zone_id
107
- name = "releases"
108
- type = "CNAME"
109
- ttl = "3600"
110
- records = ["d3g5gsiof5omrk.cloudfront.net."]
111
-}
112
-
113
-resource "aws_route53_record" "nixos-releases-verification" {
114
- zone_id = aws_route53_zone.nixos.zone_id
115
- name = "_d8f6310f3e219676be295c56e7084ed2.releases"
116
- type = "CNAME"
117
- ttl = "600"
118
- records = ["_f66cc632b3b03a0f5493a406c535ad7d.acm-validations.aws"]
119
-}
120
-
121
-resource "aws_route53_record" "nixos-status" {
122
- zone_id = aws_route53_zone.nixos.zone_id
123
- name = "status"
124
- type = "A"
125
- ttl = "3600"
126
- records = [local.host_status]
127
-}
128
-
129
-resource "aws_route53_record" "nixos-tarballs" {
130
- zone_id = aws_route53_zone.nixos.zone_id
131
- name = "tarballs"
132
- type = "CNAME"
133
- ttl = "3600"
134
- records = ["d3am6xf9zisc71.cloudfront.net."]
135
-}
136
-
137
-resource "aws_route53_record" "nixos-tarballs-verification" {
138
- zone_id = aws_route53_zone.nixos.zone_id
139
- name = "_ea68264b3470fb78960575f8dda9b40b.tarballs"
140
- type = "CNAME"
141
- ttl = "600"
142
- records = ["_d7407b1e66c162385ea6816b6da86f00.acm-validations.aws"]
143
-}
144
-
145
-resource "aws_route53_record" "nixos-weekly" {
146
- zone_id = aws_route53_zone.nixos.zone_id
147
- name = "weekly"
148
- type = "CNAME"
149
- ttl = "3600"
150
- records = ["nixos-weekly.netlify.com"]
151
-}
152
-
153
-resource "aws_route53_record" "nixos-weekly-wild" {
154
- zone_id = aws_route53_zone.nixos.zone_id
155
- name = "*.weekly"
156
- type = "CNAME"
157
- ttl = "3600"
158
- records = ["nixos-weekly.netlify.com"]
159
-}
160
-
161
-#resource "aws_route53_record" "nixos-wild" {
162
-# zone_id = aws_route53_zone.nixos.zone_id
163
-# name = "*"
164
-# type = "A"
165
-# ttl = "3600"
166
-# records = [local.host_www]
167
-#}