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 committed May 9, 2017
1 parent e0c2d67 commit 8e53a43
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ installer-env: $(INSTALLER_BIN) terraformrc.example
localconfig:
mkdir -p $(BUILD_DIR)

$(BUILD_DIR)/.terraform:
.PHONY: terraform-get
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

0 comments on commit 8e53a43

Please sign in to comment.