Created
December 22, 2014 19:07
-
-
Save kiasaki/1691c5504c9b8cde6dac to your computer and use it in GitHub Desktop.
Terraform Makefile
This file contains hidden or 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
.PHONY: all setup pull push plan apply destroy | |
all: plan apply | |
setup: | |
terraform remote -backend=HTTP -address=$(TERRAFORM_BACKEND_ADDRESS)/merd.tfstate | |
pull: | |
terraform pull | |
push: | |
terraform push | |
plan: | |
terraform plan -out terraform.tfplan | |
apply: | |
terraform apply terraform.tfplan | |
destroy: | |
terraform plan -destroy -out terraform.tfplan | |
terraform apply terraform.tfplan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great gist! Simple but complete.