-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
28 lines (21 loc) · 717 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
default: devcheck
fmt:
@echo "==> Formatting Terraform code with terraform fmt..."
@terraform fmt -recursive ./examples
fmt-check:
@echo "==> Checking Terraform code with terraform fmt..."
@terraform fmt -recursive -check ./examples
validate:
@echo "==> Checking Terraform code with terraform validate..."
@for dir in $$(find ./examples -maxdepth 0); do \
echo $${dir} ; \
[ -d "$${dir}/" ] && terraform -chdir=$${dir}/ validate . ; \
done
tflint:
@echo "==> Checking Terraform code with tflint..."
@tflint --recursive
tfsec:
@echo "==> Checking Terraform code with tfsec..."
@tfsec ./examples
devcheck: fmt fmt-check validate tflint tfsec
.PHONY: devcheck fmt fmt-check validate tflint tfsec