Terraform-IaC/Makefile
oscarpocock 75b0eb0f63
Some checks are pending
ci/woodpecker/manual/deploy Pipeline is pending
Added makefile and woodpecker folder for CI
2022-12-03 02:03:42 +00:00

22 lines
No EOL
436 B
Makefile

CODE_PATH ?= .
init:
@cd $(CODE_PATH) && terraform init -reconfigure -upgrade
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