Skip to content

Commit

Permalink
amis/Makefile: add destroy target
Browse files Browse the repository at this point in the history
  • Loading branch information
AmineChikhaoui committed Jun 4, 2023
1 parent 6c8ebb8 commit 5c3859c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions amis/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 5c3859c

Please sign in to comment.