-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from tmknom/update-makefile
Update Makefile
- Loading branch information
Showing
1 changed file
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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,) |