Skip to content

Commit

Permalink
Add subdomain for HCI
Browse files Browse the repository at this point in the history
  • Loading branch information
liammulh committed Feb 13, 2025
1 parent 21b729d commit 3fe3b50
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
16 changes: 16 additions & 0 deletions infra/subdomain.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Configure the subdomain for the HCI.

data "aws_route53_zone" "hci" {
provider = aws.route-53
name = "clinicalgenome.org"
private_zone = false
}

resource "aws_route53_record" "hci" {
provider = aws.route-53
zone_id = data.aws_route53_zone.hci.id
name = var.hci_subdomain
type = "CNAME"
ttl = 300
records = [aws_lb.hci.dns_name]
}
1 change: 1 addition & 0 deletions infra/tfvars/production.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ hci_log_retention_in_days = 30
hci_rds_db_name = "hci_production"
hci_rds_username = "hci_production_admin"
hci_rds_instance_class = "db.t3.micro"
hci_subdomain = "hci.clinicalgenome.org"
1 change: 1 addition & 0 deletions infra/tfvars/staging.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ hci_log_retention_in_days = 5
hci_rds_db_name = "hci_staging"
hci_rds_username = "hci_staging_admin"
hci_rds_instance_class = "db.t3.micro"
hci_subdomain = "hci-test.clinicalgenome.org"
4 changes: 4 additions & 0 deletions infra/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,8 @@ variable "hci_rds_username" {
variable "hci_rds_instance_class" {
description = "This is the instance type for the HCI's RDS database."
default = "db.t3.micro"
}

variable "hci_subdomain" {
description = "This is the subdomain for the HCI."
}

0 comments on commit 3fe3b50

Please sign in to comment.