-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
29 lines (21 loc) · 1009 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
# https://github.com/tmknom/template-terraform-module
TERRAFORM_VERSION := 0.12.24
-include .Makefile.terraform
.Makefile.terraform:
curl -sSL https://raw.githubusercontent.com/tmknom/template-terraform-module/0.2.7/Makefile.terraform -o .Makefile.terraform
MINIMAL_DIR := ./examples/minimal
COMPLETE_DIR := ./examples/complete
plan-minimal: ## Run terraform plan examples/minimal
$(call terraform,${MINIMAL_DIR},init,)
$(call terraform,${MINIMAL_DIR},plan,)
apply-minimal: ## Run terraform apply examples/minimal
$(call terraform,${MINIMAL_DIR},apply,)
destroy-minimal: ## Run terraform destroy examples/minimal
$(call terraform,${MINIMAL_DIR},destroy,)
plan-complete: ## Run terraform plan examples/complete
$(call terraform,${COMPLETE_DIR},init,)
$(call terraform,${COMPLETE_DIR},plan,)
apply-complete: ## Run terraform apply examples/complete
$(call terraform,${COMPLETE_DIR},apply,)
destroy-complete: ## Run terraform destroy examples/complete
$(call terraform,${COMPLETE_DIR},destroy,)