mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-23 01:14:38 +07:00
Improve infra Makefile for automation
This commit is contained in:
parent
b8bd956b67
commit
00a8d044c0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user