forked from Azure/terraform-azurerm-naming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 679 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 679 Bytes
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
.POSIX:
.PHONY: all
all: build format validate
.PHONY: install
install:
command -v terraform >/dev/null 2>&1 || go install github.com/hashicorp/terraform@v1.2.5
command -v terraform-docs >/dev/null 2>&1 || go install github.com/terraform-docs/terraform-docs@v0.16.0
command -v tfsec >/dev/null 2>&1 || go install github.com/aquasecurity/tfsec/cmd/tfsec@latest
command -v tflint >/dev/null 2>&1 || go install github.com/terraform-linters/tflint@v0.38.1
.PHONY: build
build: install generate
.PHONY: generate
generate:
go run main.go
.PHONY: format
format:
terraform fmt
.PHONY: validate
validate:
terraform fmt --check
terraform validate -no-color
tflint --no-color