@@ -8,10 +8,6 @@ bootstrap:
88 --template-file " infrastructure/bootstrap/${BOOTSTRAP} .bicep" \
99 --parameters " infrastructure/bootstrap/environments/${HUB_TYPE} /${BOOTSTRAP} .bicepparam"
1010
11-
12- poc : # Target the poc environment - make poc <action>
13- $(eval include infrastructure/environments/poc/variables.sh)
14-
1511hub-nonlive : # Target the non-live hub environment - make hub-nonlive <action>
1612 $(eval include infrastructure/bootstrap/environments/nonlive/variables.sh)
1713
@@ -112,29 +108,3 @@ terraform-validate: terraform-init-no-backend # Validate Terraform changes - mak
112108
113109terraform-fmt :
114110 terraform -chdir=infrastructure/terraform/spoke fmt
115-
116-
117- # TODO: Delete these once we are in production like environments
118- poc-terraform-init : set-azure-account get-subscription-ids # Initialise Terraform - make <env> terraform-init
119- $(eval STORAGE_ACCOUNT_NAME=sa${APP_SHORT_NAME}${ENV_CONFIG}tfstate)
120- $(eval export ARM_USE_AZUREAD=true)
121-
122- rm -rf infrastructure/modules/dtos-devops-templates
123- git -c advice.detachedHead=false clone --depth=1 --single-branch --branch ${TERRAFORM_MODULES_REF} \
124- https://github.com/NHSDigital/dtos-devops-templates.git infrastructure/modules/dtos-devops-templates
125-
126- terraform -chdir=infrastructure/terraform/spoke init -upgrade -reconfigure \
127- -backend-config=subscription_id=${HUB_SUBSCRIPTION_ID} \
128- -backend-config=resource_group_name=${STORAGE_ACCOUNT_RG} \
129- -backend-config=storage_account_name=${STORAGE_ACCOUNT_NAME} \
130- -backend-config=key=${ENVIRONMENT}.tfstate
131-
132- $(eval export TF_VAR_app_short_name=${APP_SHORT_NAME})
133- $(eval export TF_VAR_docker_image=${DOCKER_IMAGE}:${DOCKER_IMAGE_TAG})
134- $(eval export TF_VAR_environment=${ENVIRONMENT})
135- $(eval export TF_VAR_env_config=${ENV_CONFIG})
136- $(eval export TF_VAR_hub=${HUB})
137- $(eval export TF_VAR_hub_subscription_id=${HUB_SUBSCRIPTION_ID})
138-
139- poc-terraform-apply : poc-terraform-init # Apply Terraform changes - make <env> terraform-apply DOCKER_IMAGE_TAG=abcd123
140- terraform -chdir=infrastructure/terraform/spoke apply -var-file ../../environments/${ENV_CONFIG} /variables.tfvars ${AUTO_APPROVE}
0 commit comments