From 5c3859cee0484c203fe9b4aaf96948394a75519b Mon Sep 17 00:00:00 2001 From: Amine Chikhaoui Date: Sun, 4 Jun 2023 11:44:17 -0400 Subject: [PATCH] amis/Makefile: add destroy target --- amis/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/amis/Makefile b/amis/Makefile index 9dc53c8..ab4a60d 100644 --- a/amis/Makefile +++ b/amis/Makefile @@ -18,3 +18,7 @@ plan: copy.tf.json $(tfvarsFile) .current-workspace apply: copy.tf.json $(tfvarsFile) @terraform workspace select -or-create $(shell cat .current-workspace) @terraform apply -var-file=$(tfvarsFile) + +destroy: copy.tf.json $(tfvarsFile) + @terraform workspace select $(shell cat .current-workspace) + @terraform destroy -var-file=$(tfvarsFile)