File tree Expand file tree Collapse file tree 5 files changed +12
-2
lines changed
Expand file tree Collapse file tree 5 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ owner = "nhse/ndr-team"
33domain = " access-request-fulfilment.patient-deductions.nhs.uk"
44certificate_domain = " access-request-fulfilment.patient-deductions.nhs.uk"
55certificate_subdomain_name_prefix = " api-"
6+ certificate_subdomain_name_prefix_mtls = " mtls-"
67
78standalone_vpc_tag = " ndr-dev"
89standalone_vpc_ig_tag = " ndr-dev"
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ owner = "nhse/ndr-team"
33domain = " national-document-repository.nhs.uk"
44certificate_domain = " pre-prod.national-document-repository.nhs.uk"
55certificate_subdomain_name_prefix = " api."
6+ certificate_subdomain_name_prefix_mtls = " mtls."
67
78standalone_vpc_tag = " ndr-pre-prod"
89standalone_vpc_ig_tag = " ndr-pre-prod"
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ owner = "nhse/ndr-team"
33domain = " national-document-repository.nhs.uk"
44certificate_domain = " national-document-repository.nhs.uk"
55certificate_subdomain_name_prefix = " api."
6+ certificate_subdomain_name_prefix_mtls = " mtls."
67
78standalone_vpc_tag = " ndr-prod"
89standalone_vpc_ig_tag = " ndr-prod"
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ owner = "nhse/ndr-team"
33domain = " access-request-fulfilment.patient-deductions.nhs.uk"
44certificate_domain = " ndr-test.access-request-fulfilment.patient-deductions.nhs.uk"
55certificate_subdomain_name_prefix = " api."
6+ certificate_subdomain_name_prefix_mtls = " mtls."
67
78standalone_vpc_tag = " ndr-test"
89standalone_vpc_ig_tag = " ndr-test"
Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ variable "certificate_subdomain_name_prefix" {
2020 default = " api-"
2121}
2222
23+ variable "certificate_subdomain_name_prefix_mtls" {
24+ description = " Prefix to add to subdomains on certification configurations, dev envs use api-{env}, prod envs use api.{env}."
25+ type = string
26+ default = " mtls-"
27+ }
28+
2329# Bucket Variables
2430variable "docstore_bucket_name" {
2531 description = " The name of the S3 bucket to store ARF documents."
@@ -225,8 +231,8 @@ locals {
225231 api_gateway_subdomain_name = contains ([" prod" ], terraform. workspace ) ? " ${ var . certificate_subdomain_name_prefix } " : " ${ var . certificate_subdomain_name_prefix } ${ terraform . workspace } "
226232 api_gateway_full_domain_name = contains ([" prod" ], terraform. workspace ) ? " ${ var . certificate_subdomain_name_prefix } ${ var . domain } " : " ${ var . certificate_subdomain_name_prefix } ${ terraform . workspace } .${ var . domain } "
227233
228- mtls_api_gateway_subdomain_name = contains ([" prod" ], terraform. workspace ) ? " mtls. ${ var . certificate_subdomain_name_prefix } " : " mtls. ${ var . certificate_subdomain_name_prefix } ${ terraform . workspace } "
229- mtls_api_gateway_full_domain_name = contains ([" prod" ], terraform. workspace ) ? " mtls. ${ var . domain } " : " mtls. ${ terraform . workspace } .${ var . domain } "
234+ mtls_api_gateway_subdomain_name = contains ([" prod" ], terraform. workspace ) ? " ${ var . certificate_subdomain_name_prefix_mtls } " : " ${ var . certificate_subdomain_name_prefix_mtls } ${ terraform . workspace } "
235+ mtls_api_gateway_full_domain_name = contains ([" prod" ], terraform. workspace ) ? " ${ var . certificate_subdomain_name_prefix_mtls } ${ var . domain } " : " ${ var . certificate_subdomain_name_prefix_mtls } ${ terraform . workspace } .${ var . domain } "
230236
231237 current_region = data. aws_region . current . name
232238 current_account_id = data. aws_caller_identity . current . account_id
You can’t perform that action at this time.
0 commit comments