Skip to content

Commit 7e4cd3e

Browse files
authored
Merge pull request #132 from smarunich/tf_cleanup
Renamed status to state, added tf ```.terraform``` cache folder clean up and providers version lock`.terraform.lock.hcl`.
2 parents 6976b3b + 5f9b233 commit 7e4cd3e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ destroy: ## Destroy the environment
185185
cd "../../.."; \
186186
'
187187
@$(MAKE) destroy_gcp destroy_aws destroy_azure
188-
@$(MAKE) destroy_status
188+
@$(MAKE) destroy_tfstate
189+
@$(MAKE) destroy_tfcache
189190

190191
destroy_%:
191192
@/bin/sh -c '\
@@ -203,7 +204,12 @@ destroy_%:
203204
done; \
204205
'
205206

206-
.PHONY: destroy_status
207-
destroy_status:
207+
.PHONY: destroy_tfstate
208+
destroy_tfstate:
208209
find . -name terraform.tfstate.d -exec rm -rf {} \;
209210
find . -name terraform.tfstate -delete
211+
212+
.PHONY: destroy_tfcache
213+
destroy_tfcache:
214+
find . -name .terraform -exec rm -rf {} \;
215+
find . -name .terraform.lock.hcl -delete

0 commit comments

Comments
 (0)