Skip to content

Commit

Permalink
fix host zones to be for each environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Neill Turner committed Jan 23, 2025
1 parent c206eae commit d7c3841
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"from-domain": "www",
"to-domain": "claim-funding-for-mentor-training.education.gov.uk"
}
],
"test_urls": [
"claim-funding-for-mentor-training.education.gov.uk",
"www.claim-funding-for-mentor-training.education.gov.uk"
]
},
"manage-school-placements.education.gov.uk": {
Expand All @@ -34,6 +38,10 @@
"from-domain": "www",
"to-domain": "manage-school-placements.education.gov.uk"
}
],
"test_urls": [
"manage-school-placements.education.gov.uk",
"www.manage-school-placements.education.gov.uk"
]
}
}
Expand Down
6 changes: 4 additions & 2 deletions terraform/domains/environment_domains/config/qa.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"/assets/*"
],
"environment_short": "qa",
"origin_hostname": "track-and-pay-qa.test.teacherservices.cloud"
"origin_hostname": "track-and-pay-qa.test.teacherservices.cloud",
"test_urls": ["qa.claim-funding-for-mentor-training.education.gov.uk"]
},
"manage-school-placements.education.gov.uk": {
"front_door_name": "s189p01-ittmssp-domains-fd",
Expand All @@ -22,7 +23,8 @@
"/assets/*"
],
"environment_short": "qa",
"origin_hostname": "manage-school-placements-qa.test.teacherservices.cloud"
"origin_hostname": "manage-school-placements-qa.test.teacherservices.cloud",
"test_urls": ["qa.manage-school-placements.education.gov.uk"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"/assets/*"
],
"environment_short": "sb",
"origin_hostname": "track-and-pay-sandbox.teacherservices.cloud"
"origin_hostname": "track-and-pay-sandbox.teacherservices.cloud",
"test_urls": ["sandbox.claim-funding-for-mentor-training.education.gov.uk"]
},
"manage-school-placements.education.gov.uk": {
"front_door_name": "s189p01-ittmssp-domains-fd",
Expand All @@ -22,7 +23,8 @@
"/assets/*"
],
"environment_short": "sandbox",
"origin_hostname": "manage-school-placements-sandbox.teacherservices.cloud"
"origin_hostname": "manage-school-placements-sandbox.teacherservices.cloud",
"test_urls": ["sandbox.manage-school-placements.education.gov.uk"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"/assets/*"
],
"environment_short": "stg",
"origin_hostname": "track-and-pay-staging.test.teacherservices.cloud"
"origin_hostname": "track-and-pay-staging.test.teacherservices.cloud",
"test_urls": ["staging.claim-funding-for-mentor-training.education.gov.uk"]
},
"manage-school-placements.education.gov.uk": {
"front_door_name": "s189p01-ittmssp-domains-fd",
Expand All @@ -22,7 +23,8 @@
"/assets/*"
],
"environment_short": "staging",
"origin_hostname": "manage-school-placements-staging.test.teacherservices.cloud"
"origin_hostname": "manage-school-placements-staging.test.teacherservices.cloud",
"test_urls": ["staging.manage-school-placements.education.gov.uk"]
}
}
}
2 changes: 1 addition & 1 deletion terraform/domains/environment_domains/output.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
output "hosted_zones" {
value = keys(var.hosted_zone)
value = flatten([for url in var.hosted_zone: [ for u in url.test_urls : u ]])
}

0 comments on commit d7c3841

Please sign in to comment.