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