28 lines
No EOL
605 B
Makefile
28 lines
No EOL
605 B
Makefile
CODE_PATH ?= .
|
|
|
|
pre-commit:
|
|
@cd $(CODE_PATH) && pre-commit run --files *
|
|
|
|
init:
|
|
@cd $(CODE_PATH) && terraform init -reconfigure -upgrade -backend-config=./backend.tfvars
|
|
|
|
plan: init validate
|
|
@cd $(CODE_PATH) && terraform plan
|
|
|
|
apply: init validate
|
|
@cd $(CODE_PATH) && terraform apply --auto-approve
|
|
|
|
refresh: init validate
|
|
@cd $(CODE_PATH) && terraform refresh
|
|
|
|
fmt:
|
|
@cd $(CODE_PATH) && terraform fmt -check -recursive
|
|
|
|
validate:
|
|
@cd $(CODE_PATH) && terraform validate
|
|
|
|
output: init
|
|
@cd $(CODE_PATH) && terraform output
|
|
|
|
destroy: init validate
|
|
@cd $(CODE_PATH) && terraform destroy --auto-approve
|