Skip to content

Commit

Permalink
Add new trs domains
Browse files Browse the repository at this point in the history
  • Loading branch information
johnake committed Apr 25, 2024
1 parent 0c10ee0 commit 2ea8960
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 15 deletions.
4 changes: 2 additions & 2 deletions terraform/domains/environment_domains/config/dev.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"origin_hostname": "trs-dev-api.test.teacherservices.cloud"
},
"authorise-access-to-a-teaching-record.education.gov.uk": {
"front_door_name": "s189p01-trsdomains-fd",
"add_to_front_door": "s189p01-trsdomains-fd",
"resource_group_name": "s189p01-trsdomains-rg",
"domains": [
"dev"
Expand All @@ -19,7 +19,7 @@
"origin_hostname": "trs-dev-authz.test.teacherservices.cloud"
},
"teaching-record-system.education.gov.uk": {
"front_door_name": "s189p01-trsdomains-fd",
"add_to_front_door": "s189p01-trsdomains-fd",
"resource_group_name": "s189p01-trsdomains-rg",
"domains": [
"dev"
Expand Down
2 changes: 1 addition & 1 deletion terraform/domains/environment_domains/config/dev_Terrafile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
domains:
source: "https://github.com/DFE-Digital/terraform-modules"
version: "testing"
version: "refactor_custom_domain_module"
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"origin_hostname": "trs-pre-production-api.test.teacherservices.cloud"
},
"authorise-access-to-a-teaching-record.education.gov.uk": {
"front_door_name": "s189p01-trsdomains-fd",
"add_to_front_door": "s189p01-trsdomains-fd",
"resource_group_name": "s189p01-trsdomains-rg",
"domains": [
"preprod"
Expand All @@ -19,7 +19,7 @@
"origin_hostname": "trs-pre-production-authz.test.teacherservices.cloud"
},
"teaching-record-system.education.gov.uk": {
"front_door_name": "s189p01-trsdomains-fd",
"add_to_front_door": "s189p01-trsdomains-fd",
"resource_group_name": "s189p01-trsdomains-rg",
"domains": [
"preprod"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
domains:
source: "https://github.com/DFE-Digital/terraform-modules"
version: "testing"
version: "refactor_custom_domain_module"
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"origin_hostname": "trs-production-api.teacherservices.cloud"
},
"authorise-access-to-a-teaching-record.education.gov.uk": {
"front_door_name": "s189p01-trsdomains-fd",
"add_to_front_door": "s189p01-trsdomains-fd",
"resource_group_name": "s189p01-trsdomains-rg",
"domains": [
"apex"
Expand All @@ -19,13 +19,13 @@
"origin_hostname": "trs-production-authz.teacherservices.cloud"
},
"teaching-record-system.education.gov.uk": {
"front_door_name": "s189p01-trsdomains-fd",
"add_to_front_door": "s189p01-trsdomains-fd",
"resource_group_name": "s189p01-trsdomains-rg",
"domains": [
"apex"
],
"environment_short": "pd",
"origin_hostname": " trs-production-ui.teacherservices.cloud"
"origin_hostname": "trs-production-ui.teacherservices.cloud"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
domains:
source: "https://github.com/DFE-Digital/terraform-modules"
version: "stable"
version: "refactor_custom_domain_module"
4 changes: 2 additions & 2 deletions terraform/domains/environment_domains/config/test.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"origin_hostname": "trs-test-api.test.teacherservices.cloud"
},
"authorise-access-to-a-teaching-record.education.gov.uk": {
"front_door_name": "s189p01-trsdomains-fd",
"add_to_front_door": "s189p01-trsdomains-fd",
"resource_group_name": "s189p01-trsdomains-rg",
"domains": [
"test"
Expand All @@ -19,7 +19,7 @@
"origin_hostname": "trs-test-authz.test.teacherservices.cloud"
},
"teaching-record-system.education.gov.uk": {
"front_door_name": "s189p01-trsdomains-fd",
"add_to_front_door": "s189p01-trsdomains-fd",
"resource_group_name": "s189p01-trsdomains-rg",
"domains": [
"test"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
domains:
source: "https://github.com/DFE-Digital/terraform-modules"
version: "testing"
version: "refactor_custom_domain_module"
3 changes: 2 additions & 1 deletion terraform/domains/environment_domains/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ module "domains" {
for_each = var.hosted_zone
source = "./vendor/modules/domains//domains/environment_domains"
zone = each.key
front_door_name = each.value.front_door_name
front_door_name = try(each.value.front_door_name, null)
add_to_front_door = try(each.value.add_to_front_door, null)
resource_group_name = each.value.resource_group_name
domains = each.value.domains
environment = each.value.environment_short
Expand Down
2 changes: 1 addition & 1 deletion terraform/domains/environment_domains/variables.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
variable "hosted_zone" {
type = map(any)
//type = map(any)
default = {}
}

0 comments on commit 2ea8960

Please sign in to comment.