Skip to content

Commit

Permalink
Add subdomain ITs
Browse files Browse the repository at this point in the history
This PR matches the current state of IT subdomains in AWS Route 53.
  • Loading branch information
sanjaysrikakulam committed Oct 2, 2023
1 parent 0730fc5 commit 0bd0f81
Showing 1 changed file with 44 additions and 10 deletions.
54 changes: 44 additions & 10 deletions dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -236,16 +236,50 @@ resource "aws_route53_record" "ftp" {
# records = ["usegalaxy.eu"]
#}
#
#resource "aws_route53_record" "it-subdomain-main" {
# zone_id = var.zone_usegalaxy_eu
#
# # Guess new domains won't get this for now, but whatever.
# count = 23
# name = "*.interactivetoolentrypoint.interactivetool.${element(var.subdomain, count.index)}"
# type = "CNAME"
# ttl = "7200"
# records = ["usegalaxy.eu"]
#}

# If your subdomain needs GxIT privileges please place your subdomain at the end of the list and increase the counter `count` in the `it-subdomain-main` resource
variable "it-subdomain" {
type = list(string)

default = [
"annotation.usegalaxy.eu",
"aqua.usegalaxy.eu",
"beta.usegalaxy.eu",
"build.usegalaxy.eu",
"cheminformatics.usegalaxy.eu",
"climate.usegalaxy.eu",
"clipseq.usegalaxy.eu",
"ecology.usegalaxy.eu",
"erasmusmc.usegalaxy.eu",
"graphclust.usegalaxy.eu",
"hicexplorer.usegalaxy.eu",
"humancellatlas.usegalaxy.eu",
"imaging.usegalaxy.eu",
"usegalaxy.eu",
"test.internal.usegalaxy.eu",
"live.usegalaxy.eu",
"metabolomics.usegalaxy.eu",
"metagenomics.usegalaxy.eu",
"nanopore.usegalaxy.eu",
"proteomics.usegalaxy.eu",
"rna.usegalaxy.eu",
"singlecell.usegalaxy.eu",
"stats.usegalaxy.eu",
"streetscience.usegalaxy.eu",
"test.usegalaxy.eu"
]
}

resource "aws_route53_record" "it-subdomain-main" {
# allow_overwrite = true
zone_id = var.zone_usegalaxy_eu
count = 25
name = "*.interactivetoolentrypoint.interactivetool.${element(var.it-subdomain, count.index)}"
type = "CNAME"
ttl = "7200"
records = ["usegalaxy.eu"]
}

#
## https://727a121642ce1f94-3a20d7fa7b014959af58c7f6a47d1af.interactivetoolentrypoint.interactivetool.test.internal.usegalaxy.eu/
##resource "aws_route53_record" "it-subdomain-test" {
Expand Down

0 comments on commit 0bd0f81

Please sign in to comment.