From 5ccd411a722848b4f9c7c9e3906a0907792f698c Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Sun, 14 Mar 2021 09:51:17 +0000 Subject: [PATCH] Add targeted deletion. --- step3/.gitignore | 3 ++- step3/Makefile | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/step3/.gitignore b/step3/.gitignore index e3e72f9..4f1c366 100644 --- a/step3/.gitignore +++ b/step3/.gitignore @@ -1 +1,2 @@ -**.terraform \ No newline at end of file +**.terraform +infrastructure/.terraform.lock.hcl \ No newline at end of file diff --git a/step3/Makefile b/step3/Makefile index e6325b5..8deaaed 100644 --- a/step3/Makefile +++ b/step3/Makefile @@ -9,6 +9,9 @@ plan: destroy: cd infrastructure; terraform destroy $(ADDITIONAL_ARGS) -var-file ../variables.tfvars +destroy-target: + cd infrastructure; terraform destroy $(ADDITIONAL_ARGS) -var-file ../variables.tfvars -target $(TARGET) + refresh: cd infrastructure; terraform refresh $(ADDITIONAL_ARGS) -var-file ../variables.tfvars