generated from stackxcloud/template-terraform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (23 loc) · 886 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Include another Makefile
-include $(shell curl -sSL "https://raw.githubusercontent.com/ventx/stackx-action-readme-templates/main/Makefile" -o .Makefile; echo .Makefile)
##@ Repository specific
.PHONY: all
all: init validate plan apply ## Format your code, init, validate, lint and test.
.PHONY: apply
apply: tf-apply ## Run terraform apply for your code.
.PHONY: clean
clean: tf-clean ## Remove lockfiles and terraform states.
.PHONY: fmt
fmt: tf-fmt ## Run terraform fmt to format your HCL code.
.PHONY: init
init: tf-init ## Run terraform init.
.PHONY: lint
lint: tflint ## Run tflilnt on your code.
.PHONY: destroy
destroy: tf-destroy ## Run terraform destroy.
.PHONY: plan
plan: tf-plan ## Run terraform plan.
.PHONY: test
test: tf-test ## Run terraform test on your code.
.PHONY: validate
validate: tf-validate ## Run terraform validate for some basic HCL validation.