Skip to content

Commit f283cf3

Browse files
authored
Flexion/jgilmore/16196-add-environment-variable-for-default encoding (#16235)
* update terraform to include JAVA_OPTS env variable * update function_app terrfgorm files with JAVA_OPTS env variable * add integration test for HL7 to FHIR for ORU * update integration test file name * update hl7 to fhir integration test
1 parent 6727053 commit f283cf3

File tree

13 files changed

+19714
-1
lines changed

13 files changed

+19714
-1
lines changed

operations/app/terraform/modules/function_app/locals.tf

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ locals {
1919
"RS_OKTA_ClientId" = var.RS_OKTA_clientId
2020
"ETOR_TI_baseurl" = var.etor_ti_base_url
2121
"cdctiautomated" = var.cdctiautomated_sa
22+
"JAVA_OPTS" = var.JAVA_OPTS
2223
# Manage client secrets via a Key Vault
2324
"CREDENTIAL_STORAGE_METHOD" = "AZURE"
2425
"CREDENTIAL_KEY_VAULT_NAME" = var.client_config_key_vault_name

operations/app/terraform/modules/function_app/~inputs.tf

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ variable "etor_ti_base_url" {}
9393
variable "cdctiautomated_sa" {
9494
default = ""
9595
}
96+
variable "JAVA_OPTS" {}
9697

9798
variable "subnets" {
9899
description = "A set of all available subnet combinations"

operations/app/terraform/vars/demo/locals.tf

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ locals {
1717
RS_okta_redirect_url = "https://prime-data-hub-XXXXXXX.azurefd.net/download"
1818
RS_OKTA_scope = "reportstream_dev"
1919
etor_ti_base_url = "https://cdcti-stg-api.azurewebsites.net"
20+
JAVA_OPTS = "-Dfile.encoding=UTF-8"
2021
}
2122
key_vault = {
2223
app_config_kv_name = "pdh${local.init.environment}-appconfig${local.init.random_id}"

operations/app/terraform/vars/demo/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ module "function_app" {
183183
RS_OKTA_clientId = data.azurerm_key_vault_secret.RS_OKTA_clientId.value
184184
RS_OKTA_authKey = data.azurerm_key_vault_secret.RS_OKTA_authKey.value
185185
etor_ti_base_url = local.init.etor_ti_base_url
186+
JAVA_OPTS = local.init.JAVA_OPTS
186187
}
187188

188189
module "front_door" {

operations/app/terraform/vars/prod/locals.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ locals {
1616
storage_queue_name = ["process"]
1717
sftp_container_module = false
1818
etor_ti_base_url = "https://cdcti-prd-api.azurewebsites.net"
19-
19+
JAVA_OPTS = "-Dfile.encoding=UTF-8"
2020
}
2121
key_vault = {
2222
app_config_kv_name = "pdh${local.init.environment}-appconfig"

operations/app/terraform/vars/prod/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ module "function_app" {
161161
RS_OKTA_clientId = data.azurerm_key_vault_secret.RS_OKTA_clientId.value
162162
RS_OKTA_authKey = data.azurerm_key_vault_secret.RS_OKTA_authKey.value
163163
etor_ti_base_url = local.init.etor_ti_base_url
164+
JAVA_OPTS = local.init.JAVA_OPTS
164165
}
165166

166167
module "front_door" {

operations/app/terraform/vars/staging/locals.tf

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ locals {
1616
storage_queue_name = ["process", "batch", "batch-poison", "elr-fhir-convert", "process-poison", "send", "send-poison", "elr-fhir-convert", "elr-fhir-convert-poison", "elr-fhir-route", "elr-fhir-translate", "elr-fhir-translate-poison", "process-elr"]
1717
sftp_container_module = true
1818
etor_ti_base_url = "https://cdcti-stg-api.azurewebsites.net"
19+
JAVA_OPTS = "-Dfile.encoding=UTF-8"
1920
}
2021
key_vault = {
2122
app_config_kv_name = "pdh${local.init.environment}-appconfig"

operations/app/terraform/vars/staging/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ module "function_app" {
161161
RS_OKTA_authKey = data.azurerm_key_vault_secret.RS_OKTA_authKey.value
162162
etor_ti_base_url = local.init.etor_ti_base_url
163163
cdctiautomated_sa = data.azurerm_key_vault_secret.cdctiautomated_sa.value
164+
JAVA_OPTS = local.init.JAVA_OPTS
164165
}
165166

166167
module "front_door" {

operations/app/terraform/vars/test/locals.tf

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ locals {
1616
storage_queue_name = ["process"]
1717
sftp_container_module = true
1818
etor_ti_base_url = "https://cdcti-stg-api.azurewebsites.net"
19+
JAVA_OPTS = "-Dfile.encoding=UTF-8"
1920
}
2021
key_vault = {
2122
app_config_kv_name = "pdh${local.init.environment}-app-config"

operations/app/terraform/vars/test/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ module "function_app" {
164164
RS_OKTA_clientId = data.azurerm_key_vault_secret.RS_OKTA_clientId.value
165165
RS_OKTA_authKey = data.azurerm_key_vault_secret.RS_OKTA_authKey.value
166166
etor_ti_base_url = local.init.etor_ti_base_url
167+
JAVA_OPTS = local.init.JAVA_OPTS
167168
}
168169

169170
module "front_door" {

0 commit comments

Comments
 (0)