Skip to content

Commit 61f0da1

Browse files
AllenAnthesohaiwalt
authored andcommitted
Add DNS record for pybot subdomain (#93)
1 parent 16db89b commit 61f0da1

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

dns/operationcode.org/records.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ resource "dnsimple_record" "dashboards" {
1919
value = "${var.k8s-cluster-ingress}"
2020
}
2121

22+
resource "dnsimple_record" "pybot" {
23+
domain = "${var.hosted-zone}"
24+
name = "pybot"
25+
type = "CNAME"
26+
value = "${var.pybot-lb-ingress}"
27+
}
28+
2229
resource "dnsimple_record" "resources_api" {
2330
domain = "${var.hosted-zone}"
2431
name = "resources"

dns/operationcode.org/terraform.tfvars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ terragrunt = {
66

77
hosted-zone = "operationcode.org"
88
k8s-cluster-ingress = "ac206d147f3ed11e7a802062a4d50822-1344197385.us-east-2.elb.amazonaws.com"
9+
pybot-lb-ingress = "pyback-lb-197482116.us-east-2.elb.amazonaws.com"

dns/operationcode.org/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@ variable "hosted-zone" {
66
variable "k8s-cluster-ingress" {
77
description = "Load balancer URL for the Kubernetes ingress"
88
type = "string"
9+
}
10+
11+
variable "pybot-lb-ingress" {
12+
description = "Load balancer URL for pybot subdomain ingress"
13+
type = "string"
914
}

0 commit comments

Comments
 (0)