Skip to content

Commit

Permalink
Merge pull request #11 from tmknom/update-makefile
Browse files Browse the repository at this point in the history
Update Makefile
  • Loading branch information
tmknom authored May 2, 2020
2 parents c380b1e + eea106d commit 96aed50
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
# https://github.com/tmknom/template-terraform-module
TERRAFORM_VERSION := 0.11.10
TERRAFORM_VERSION := 0.12.24
-include .Makefile.terraform

.Makefile.terraform:
curl -sSL https://raw.githubusercontent.com/tmknom/template-terraform-module/master/Makefile.terraform -o .Makefile.terraform
curl -sSL https://raw.githubusercontent.com/tmknom/template-terraform-module/0.2.6/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
plan-minimal: ## Run terraform plan examples/minimal
$(call terraform,${MINIMAL_DIR},init,)
$(call terraform,${MINIMAL_DIR},plan,)

terraform-apply-minimal: ## Run terraform apply examples/minimal
$(call terraform,${MINIMAL_DIR},apply)
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)
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
plan-complete: ## Run terraform plan examples/complete
$(call terraform,${COMPLETE_DIR},init,)
$(call terraform,${COMPLETE_DIR},plan,)

terraform-apply-complete: ## Run terraform apply examples/complete
$(call terraform,${COMPLETE_DIR},apply)
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)
destroy-complete: ## Run terraform destroy examples/complete
$(call terraform,${COMPLETE_DIR},destroy,)

0 comments on commit 96aed50

Please sign in to comment.