Skip to content

Commit ff9b63a

Browse files
committed
add init script in destroy makefile
1 parent a02bbe1 commit ff9b63a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ create-compute-engine:
2626
destroy-s3:
2727
@echo ""
2828
@echo "$(PURPLE) Terraform s3 destroy $(RESET)"
29+
@cd src/s3_init && terraform init
2930
@cd src/s3_init && terraform destroy -auto-approve
3031

3132
destroy-compute-engine:
3233
@echo ""
3334
@echo "$(PURPLE) Terraform compute engine destroy $(RESET)"
35+
@cd src && terraform init
3436
@cd src && terraform destroy -auto-approve -var-file=$(VAR_FILE)
3537

3638
clean: destroy-compute-engine

0 commit comments

Comments
 (0)