-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
29 lines (21 loc) · 1.17 KB
/
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.11.11
-include .Makefile.terraform
.Makefile.terraform:
curl -sSL https://raw.githubusercontent.com/tmknom/template-terraform-module/master/Makefile.terraform -o .Makefile.terraform
MINIMAL_DIR := ./examples/minimal
COMPLETE_DIR := ./examples/complete
terraform-plan-minimal: ## Run terraform plan examples/minimal
$(call terraform,${MINIMAL_DIR},init)
$(call terraform,${MINIMAL_DIR},plan) | tee -a /dev/stderr | docker run --rm -i tmknom/terraform-landscape
terraform-apply-minimal: ## Run terraform apply examples/minimal
$(call terraform,${MINIMAL_DIR},apply)
terraform-destroy-minimal: ## Run terraform destroy examples/minimal
$(call terraform,${MINIMAL_DIR},destroy)
terraform-plan-complete: ## Run terraform plan examples/complete
$(call terraform,${COMPLETE_DIR},init)
$(call terraform,${COMPLETE_DIR},plan) | tee -a /dev/stderr | docker run --rm -i tmknom/terraform-landscape
terraform-apply-complete: ## Run terraform apply examples/complete
$(call terraform,${COMPLETE_DIR},apply)
terraform-destroy-complete: ## Run terraform destroy examples/complete
$(call terraform,${COMPLETE_DIR},destroy)