Improve infra Makefile for automation

This commit is contained in:
Khue Doan 2021-05-23 11:56:05 +07:00
parent b8bd956b67
commit 00a8d044c0

View File

@ -1,15 +1,18 @@
.POSIX:
.EXPORT_ALL_VARIABLES:
TF_IN_AUTOMATION = true
default: init plan apply
init:
terraform init
terraform init -input=false
plan:
terraform plan
terraform plan -input=false -out=/tmp/tfplan
apply:
terraform apply --auto-approve
terraform apply -input=false /tmp/tfplan
destroy:
terraform destroy