Skip to content

Commit 62b270c

Browse files
committed
Fixed makefile
1 parent f081678 commit 62b270c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

terraform_old/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ project_short_name = imms
99
state_bucket = immunisation-preprod-terraform-state-files
1010
tf_state= -backend-config="bucket=$(state_bucket)"
1111

12-
tf_vars= -var="project_name=$(project_name)" -var="project_short_name=$(project_short_name)" -var="profile=$(aws_profile)" -var="aws_account_name=$(ENVIRONMENT)"
12+
tf_vars= -var="project_name=$(project_name)" -var="project_short_name=$(project_short_name)" -var="aws_account_name=$(environment)"
1313

1414
.PHONY : lock-provider workspace init plan apply clean destroy output state-list lambda-zip catch-all-zip
1515

@@ -19,7 +19,7 @@ lock-provider:
1919
$(tf_cmd) providers lock -platform=darwin_arm64 -platform=darwin_amd64 -platform=linux_amd64 -platform=windows_amd64
2020

2121
workspace:
22-
$(tf_cmd) workspace new $(ENVIRONMENT) || $(tf_cmd) workspace select $(ENVIRONMENT) && echo "Switched to workspace/environment: $(ENVIRONMENT)"
22+
$(tf_cmd) workspace new $(environment) || $(tf_cmd) workspace select $(environment) && echo "Switched to workspace/environment: $(environment)"
2323

2424
init:
2525
$(tf_cmd) init $(tf_state) -upgrade $(tf_vars)
@@ -43,7 +43,7 @@ clean:
4343
destroy: workspace
4444
$(tf_cmd) destroy $(tf_vars) -auto-approve
4545
$(tf_cmd) workspace select default
46-
$(tf_cmd) workspace delete $(ENVIRONMENT)
46+
$(tf_cmd) workspace delete $(environment)
4747

4848
output:
4949
$(tf_cmd) output -raw $(name)

0 commit comments

Comments
 (0)