-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 685 Bytes
/
Copy pathMakefile
File metadata and controls
24 lines (18 loc) · 685 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
.PHONY: fmt
fmt: ## Run terraform fmt
@terraform -chdir=terraform fmt
.PHONY: val
val: ## Run terraform validate
@terraform -chdir=terraform validate
.PHONY: check
check: fmt val ## Run terraform fmt and validate
.PHONY: init
init: # Run terraform init without the backend, for local installation.
@terraform -chdir=terraform init -backend=false
.PHONY: upgrade
upgrade: # Run terraform init -upgrade without the backend, for local installation.
@terraform -chdir=terraform init -backend=false -upgrade
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help