-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (17 loc) · 746 Bytes
/
Makefile
File metadata and controls
24 lines (17 loc) · 746 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: help install build
.DEFAULT_GOAL= help
help:
@grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-10s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
init: ## Initialize a new or existing Terraform working directory by creating initial files
terraform init
validate: ## Validate configuration files
terraform validate
plan: init validate ## Generates an execution plan for Terraform.
terraform plan
apply: plan ## Builds or changes infrastructure according to Terraform configuration files in DIR.
terraform apply -auto-approve
destroy: ## Destroy Terraform-managed infrastructure.
terraform destroy
clean: ## Clean unused
rm -rf .terraform
rm -rf **/.terraform