Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

Commit

Permalink
Always invoke terraform get to ensure we have the necessary modules (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aknuds1 authored and Sergiusz Urbaniak committed May 12, 2017
1 parent 6ba9fd9 commit 2ec10e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ installer-env: $(INSTALLER_BIN) terraformrc.example
localconfig:
mkdir -p $(BUILD_DIR)

$(BUILD_DIR)/.terraform:
terraform-get:
cd $(BUILD_DIR) && $(TF_CMD) get $(TOP_DIR)/platforms/$(PLATFORM)

plan: installer-env $(BUILD_DIR)/.terraform
plan: installer-env terraform-get
cd $(BUILD_DIR) && $(TF_CMD) plan $(TOP_DIR)/platforms/$(PLATFORM)

apply: installer-env $(BUILD_DIR)/.terraform
apply: installer-env terraform-get
cd $(BUILD_DIR) && $(TF_CMD) apply $(TOP_DIR)/platforms/$(PLATFORM)

destroy: installer-env ${BUILD_DIR}/.terraform
destroy: installer-env terraform-get
cd $(BUILD_DIR) && $(TF_CMD) destroy -force $(TOP_DIR)/platforms/$(PLATFORM)

payload:
Expand Down Expand Up @@ -113,4 +113,4 @@ structure-check:
canonical-syntax:
terraform fmt -list .

.PHONY: make clean terraform terraform-dev structure-check canonical-syntax docs examples
.PHONY: make clean terraform terraform-dev structure-check canonical-syntax docs examples terraform-get

0 comments on commit 2ec10e8

Please sign in to comment.