2021-02-08 10:09:32 +07:00
|
|
|
.POSIX:
|
2021-05-23 11:56:05 +07:00
|
|
|
.EXPORT_ALL_VARIABLES:
|
|
|
|
|
|
|
|
TF_IN_AUTOMATION = true
|
2021-02-08 10:09:32 +07:00
|
|
|
|
2021-05-23 12:24:32 +07:00
|
|
|
default: init apply
|
2021-02-08 10:09:32 +07:00
|
|
|
|
|
|
|
init:
|
2021-06-09 12:23:27 +07:00
|
|
|
terraform init -input=false -backend-config=backend.tfvars
|
2021-02-08 10:09:32 +07:00
|
|
|
|
|
|
|
plan:
|
2021-05-23 11:56:05 +07:00
|
|
|
terraform plan -input=false -out=/tmp/tfplan
|
2021-02-08 10:09:32 +07:00
|
|
|
|
2021-05-23 12:24:32 +07:00
|
|
|
apply: plan
|
2021-05-23 11:56:05 +07:00
|
|
|
terraform apply -input=false /tmp/tfplan
|
2021-05-21 11:21:14 +07:00
|
|
|
|
|
|
|
destroy:
|
|
|
|
terraform destroy
|
2021-06-10 07:14:10 +07:00
|
|
|
|
|
|
|
lint:
|
|
|
|
terraform fmt -recursive -diff -check
|