From 9f10cd1eada18ef14f08e8bd9d8c60bb778bebb2 Mon Sep 17 00:00:00 2001 From: surtur Date: Thu, 13 May 2021 02:11:08 +0200 Subject: [PATCH] add Makefile --- vms/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 vms/Makefile diff --git a/vms/Makefile b/vms/Makefile new file mode 100644 index 0000000..31ef0d5 --- /dev/null +++ b/vms/Makefile @@ -0,0 +1,21 @@ +tf = terraform +tfa = $(tf) apply +tfa! = $(tfa) -auto-approve +tfd = $(tf) destroy -auto-approve +tfinfra = $(tf) init && $(tfv) && $(tfp) && $(tfa!) +tfp = $(tf) plan +tfv = $(tf) validate + +.PHONY: apply destroy infra plan + +apply: + $(tfa) + +destroy: + $(tfd) + +infra: + $(tfinfra) + +plan: + $(tfp)