22 lines
288 B
Makefile
22 lines
288 B
Makefile
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)
|