diff --git a/deployments/terraform/7-lwa-app-deployment-pla/locals.tf b/deployments/terraform/7-lwa-app-deployment-pla/locals.tf index fef1471..1d48c83 100644 --- a/deployments/terraform/7-lwa-app-deployment-pla/locals.tf +++ b/deployments/terraform/7-lwa-app-deployment-pla/locals.tf @@ -1,7 +1,7 @@ # --- 7-lwa-app-deployment-pla/locals.tf --- locals { - https_url_environment_js_template = "https://raw.githubusercontent.com/axiologic-pla/LWA/main/environment.js.template" + https_url_environment_js_template = "https://raw.githubusercontent.com/${ var.lwa_repo }/${ var.lwa_branch }/environment.js.template" fqdn = var.hostname == "" ? var.dns_domain : join(".", [var.hostname, var.dns_domain]) diff --git a/deployments/terraform/7-lwa-app-deployment-pla/terraform.sh b/deployments/terraform/7-lwa-app-deployment-pla/terraform.sh index 2018fef..26be904 100644 --- a/deployments/terraform/7-lwa-app-deployment-pla/terraform.sh +++ b/deployments/terraform/7-lwa-app-deployment-pla/terraform.sh @@ -28,6 +28,9 @@ TOTAL_WAIT_TIME="${14}" GTO_TIME_PER_CALL="${15}" GTO_TOTAL_WAIT_TIME="${16}" +LWA_REPO="${17}" +LWA_BRANCH="${18}" + DEPLOYMENT_NAME="LWA" FQDN=$DNS_DOMAIN @@ -57,6 +60,8 @@ time_per_call = ${TIME_PER_CALL} total_wait_time = ${TOTAL_WAIT_TIME} gto_time_per_call = ${GTO_TIME_PER_CALL} gto_total_wait_time = ${GTO_TOTAL_WAIT_TIME} +lwa_repo = "${LWA_REPO}" +lwa_branch = "${LWA_BRANCH}" EOF terraform init -reconfigure \ diff --git a/deployments/terraform/7-lwa-app-deployment-pla/variables.tf b/deployments/terraform/7-lwa-app-deployment-pla/variables.tf index 3d79ea0..82097b0 100644 --- a/deployments/terraform/7-lwa-app-deployment-pla/variables.tf +++ b/deployments/terraform/7-lwa-app-deployment-pla/variables.tf @@ -50,3 +50,15 @@ variable "hostname" { type = string default = "" } + +variable "lwa_repo" { + type = string + default = "" +} + +variable "lwa_branch" { + type = string + default = "" +} + +