Skip to content

Commit 49c3978

Browse files
authored
Format records and add TTL to client DNS records (#120)
1 parent bbb8638 commit 49c3978

1 file changed

Lines changed: 35 additions & 33 deletions

File tree

dns/operationcode.org/records.tf

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,81 +3,83 @@ resource "dnsimple_record" "root" {
33
name = ""
44
type = "ALIAS"
55
value = "alias.zeit.co"
6+
ttl = 60
67
}
78

89
resource "dnsimple_record" "www" {
910
domain = "${var.hosted-zone}"
10-
name = "www"
11-
type = "ALIAS"
12-
value = "alias.zeit.co"
11+
name = "www"
12+
type = "ALIAS"
13+
value = "alias.zeit.co"
14+
ttl = 60
1315
}
1416

1517
resource "dnsimple_record" "www_txt" {
1618
domain = "${var.hosted-zone}"
17-
name = "_now"
18-
type = "TXT"
19-
value = "Qmd8XawRvuECtFLQm8SytbgcW2PV2jthtfMy7ujLnTN2gL"
19+
name = "_now"
20+
type = "TXT"
21+
value = "Qmd8XawRvuECtFLQm8SytbgcW2PV2jthtfMy7ujLnTN2gL"
2022
}
2123

2224
resource "dnsimple_record" "api" {
2325
domain = "${var.hosted-zone}"
24-
name = "api"
25-
type = "CNAME"
26-
value = "${var.k8s-cluster-ingress}"
26+
name = "api"
27+
type = "CNAME"
28+
value = "${var.k8s-cluster-ingress}"
2729
}
2830

2931
resource "dnsimple_record" "staging_api" {
3032
domain = "${var.hosted-zone}"
31-
name = "api.staging"
32-
type = "CNAME"
33-
value = "${var.k8s-cluster-ingress}"
33+
name = "api.staging"
34+
type = "CNAME"
35+
value = "${var.k8s-cluster-ingress}"
3436
}
3537

3638
resource "dnsimple_record" "dashboards" {
3739
domain = "${var.hosted-zone}"
38-
name = "dashboards"
39-
type = "CNAME"
40-
value = "${var.k8s-cluster-ingress}"
40+
name = "dashboards"
41+
type = "CNAME"
42+
value = "${var.k8s-cluster-ingress}"
4143
}
4244

4345
resource "dnsimple_record" "pybot" {
4446
domain = "${var.hosted-zone}"
45-
name = "pybot"
46-
type = "CNAME"
47-
value = "${var.pybot-lb-ingress}"
47+
name = "pybot"
48+
type = "CNAME"
49+
value = "${var.pybot-lb-ingress}"
4850
}
4951

5052
resource "dnsimple_record" "staging_pybot" {
5153
domain = "${var.hosted-zone}"
52-
name = "pybot.staging"
53-
type = "CNAME"
54-
value = "${var.pybot-lb-ingress}"
54+
name = "pybot.staging"
55+
type = "CNAME"
56+
value = "${var.pybot-lb-ingress}"
5557
}
5658

5759
resource "dnsimple_record" "staging_pybot_cert_verification" {
5860
domain = "${var.hosted-zone}"
59-
name = "_69b5c7278c7c13092899e1b67e8de6c1.pybot.staging"
60-
type = "CNAME"
61-
value = "_9fdd906cbd86d545894523f8cd809812.ltfvzjuylp.acm-validations.aws"
61+
name = "_69b5c7278c7c13092899e1b67e8de6c1.pybot.staging"
62+
type = "CNAME"
63+
value = "_9fdd906cbd86d545894523f8cd809812.ltfvzjuylp.acm-validations.aws"
6264
}
6365

6466
resource "dnsimple_record" "resources_api" {
6567
domain = "${var.hosted-zone}"
66-
name = "resources"
67-
type = "CNAME"
68-
value = "${var.k8s-cluster-ingress}"
68+
name = "resources"
69+
type = "CNAME"
70+
value = "${var.k8s-cluster-ingress}"
6971
}
7072

7173
resource "dnsimple_record" "resources_staging_api" {
7274
domain = "${var.hosted-zone}"
73-
name = "resources.staging"
74-
type = "CNAME"
75-
value = "${var.k8s-cluster-ingress}"
75+
name = "resources.staging"
76+
type = "CNAME"
77+
value = "${var.k8s-cluster-ingress}"
7678
}
7779

7880
resource "dnsimple_record" "python_backend_dev" {
7981
domain = "${var.hosted-zone}"
80-
name = "api.dev"
81-
type = "CNAME"
82-
value = "${var.k8s-cluster-ingress}"
82+
name = "api.dev"
83+
type = "CNAME"
84+
value = "${var.k8s-cluster-ingress}"
8385
}

0 commit comments

Comments
 (0)