Skip to content

Commit

Permalink
Flexion/jgilmore/16196-add-environment-variable-for-default-encoding (#…
Browse files Browse the repository at this point in the history
…16234)

* update terraform to include JAVA_OPTS env variable

* update function_app terrfgorm files with JAVA_OPTS env variable
  • Loading branch information
GilmoreA6 authored Oct 15, 2024
1 parent 031c752 commit 88e92b9
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions operations/app/terraform/modules/function_app/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ locals {
"RS_OKTA_ClientId" = var.RS_OKTA_clientId
"ETOR_TI_baseurl" = var.etor_ti_base_url
"cdctiautomated" = var.cdctiautomated_sa
"JAVA_OPTS" = var.JAVA_OPTS
# Manage client secrets via a Key Vault
"CREDENTIAL_STORAGE_METHOD" = "AZURE"
"CREDENTIAL_KEY_VAULT_NAME" = var.client_config_key_vault_name
Expand Down
1 change: 1 addition & 0 deletions operations/app/terraform/modules/function_app/~inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ variable "etor_ti_base_url" {}
variable "cdctiautomated_sa" {
default = ""
}
variable "JAVA_OPTS" {}

variable "subnets" {
description = "A set of all available subnet combinations"
Expand Down
1 change: 1 addition & 0 deletions operations/app/terraform/vars/demo/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ locals {
RS_okta_redirect_url = "https://prime-data-hub-XXXXXXX.azurefd.net/download"
RS_OKTA_scope = "reportstream_dev"
etor_ti_base_url = "https://cdcti-stg-api.azurewebsites.net"
JAVA_OPTS = "-Dfile.encoding=UTF-8"
}
key_vault = {
app_config_kv_name = "pdh${local.init.environment}-appconfig${local.init.random_id}"
Expand Down
1 change: 1 addition & 0 deletions operations/app/terraform/vars/demo/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ module "function_app" {
RS_OKTA_clientId = data.azurerm_key_vault_secret.RS_OKTA_clientId.value
RS_OKTA_authKey = data.azurerm_key_vault_secret.RS_OKTA_authKey.value
etor_ti_base_url = local.init.etor_ti_base_url
JAVA_OPTS = local.init.JAVA_OPTS
}

module "front_door" {
Expand Down
2 changes: 1 addition & 1 deletion operations/app/terraform/vars/prod/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ locals {
storage_queue_name = ["process"]
sftp_container_module = false
etor_ti_base_url = "https://cdcti-prd-api.azurewebsites.net"

JAVA_OPTS = "-Dfile.encoding=UTF-8"
}
key_vault = {
app_config_kv_name = "pdh${local.init.environment}-appconfig"
Expand Down
1 change: 1 addition & 0 deletions operations/app/terraform/vars/prod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ module "function_app" {
RS_OKTA_clientId = data.azurerm_key_vault_secret.RS_OKTA_clientId.value
RS_OKTA_authKey = data.azurerm_key_vault_secret.RS_OKTA_authKey.value
etor_ti_base_url = local.init.etor_ti_base_url
JAVA_OPTS = local.init.JAVA_OPTS
}

module "front_door" {
Expand Down
1 change: 1 addition & 0 deletions operations/app/terraform/vars/staging/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ locals {
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"]
sftp_container_module = true
etor_ti_base_url = "https://cdcti-stg-api.azurewebsites.net"
JAVA_OPTS = "-Dfile.encoding=UTF-8"
}
key_vault = {
app_config_kv_name = "pdh${local.init.environment}-appconfig"
Expand Down
1 change: 1 addition & 0 deletions operations/app/terraform/vars/staging/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ module "function_app" {
RS_OKTA_authKey = data.azurerm_key_vault_secret.RS_OKTA_authKey.value
etor_ti_base_url = local.init.etor_ti_base_url
cdctiautomated_sa = data.azurerm_key_vault_secret.cdctiautomated_sa.value
JAVA_OPTS = local.init.JAVA_OPTS
}

module "front_door" {
Expand Down
1 change: 1 addition & 0 deletions operations/app/terraform/vars/test/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ locals {
storage_queue_name = ["process"]
sftp_container_module = true
etor_ti_base_url = "https://cdcti-stg-api.azurewebsites.net"
JAVA_OPTS = "-Dfile.encoding=UTF-8"
}
key_vault = {
app_config_kv_name = "pdh${local.init.environment}-app-config"
Expand Down
1 change: 1 addition & 0 deletions operations/app/terraform/vars/test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ module "function_app" {
RS_OKTA_clientId = data.azurerm_key_vault_secret.RS_OKTA_clientId.value
RS_OKTA_authKey = data.azurerm_key_vault_secret.RS_OKTA_authKey.value
etor_ti_base_url = local.init.etor_ti_base_url
JAVA_OPTS = local.init.JAVA_OPTS
}

module "front_door" {
Expand Down

0 comments on commit 88e92b9

Please sign in to comment.