add Makefile

This commit is contained in:
surtur 2021-05-13 02:11:08 +02:00
parent ab2bea4699
commit 9f10cd1ead
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

21
vms/Makefile Normal file
View File

@ -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)