From a373755ed48ee5f3335eabe397f983fcbcea4549 Mon Sep 17 00:00:00 2001 From: Simon Gottschlag Date: Tue, 5 Dec 2023 16:37:37 +0100 Subject: [PATCH] make it possible to modify all env variables --- docker/terraform.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/terraform.sh b/docker/terraform.sh index 49492d7..09560ed 100755 --- a/docker/terraform.sh +++ b/docker/terraform.sh @@ -9,12 +9,12 @@ OPA_BLAST_RADIUS=$5 RG_LOCATION_SHORT=${RG_LOCATION_SHORT:-we} RG_LOCATION_LONG=${RG_LOCATION_LONG:-westeurope} -BACKEND_KEY="${ENVIRONMENT}.terraform.tfstate" -BACKEND_RG="rg-${ENVIRONMENT}-${RG_LOCATION_SHORT}-${SUFFIX}" -BACKEND_KV="kv-${ENVIRONMENT}-${RG_LOCATION_SHORT}-${SUFFIX}" -BACKEND_KV_KEY="sops" -BACKEND_NAME="sa${ENVIRONMENT}${RG_LOCATION_SHORT}${SUFFIX}" -CONTAINER_NAME="tfstate-${DIR}" +BACKEND_KEY="${BACKEND_KEY:-${ENVIRONMENT}.terraform.tfstate}" +BACKEND_RG="${BACKEND_RG:-rg-${ENVIRONMENT}-${RG_LOCATION_SHORT}-${SUFFIX}}" +BACKEND_KV="${BACKEND_KV:-kv-${ENVIRONMENT}-${RG_LOCATION_SHORT}-${SUFFIX}}" +BACKEND_KV_KEY="${BACKEND_KV_KEY:-sops}" +BACKEND_NAME="${BACKEND_NAME:-sa${ENVIRONMENT}${RG_LOCATION_SHORT}${SUFFIX}}" +CONTAINER_NAME="${CONTAINER_NAME:-tfstate-${DIR}}" export HELM_CACHE_HOME=/tmp/${DIR}/.helm_cache