Created
November 29, 2018 13:12
-
-
Save JamesWoolfenden/fb5da8df75f61f5791de70454d1a7114 to your computer and use it in GitHub Desktop.
Basic Terraform Makefile
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
#Makefile | |
.PHONY: all | |
all: init plan build | |
init: | |
rm -rf .terraform/modules/ | |
terraform init -reconfigure | |
plan: init | |
terraform plan -refresh=true | |
build: init | |
terraform apply -auto-approve | |
check: init | |
terraform plan -detailed-exitcode | |
destroy: init | |
terraform destroy -force | |
docs: | |
terraform-docs md . > README.md | |
valid: | |
tflint | |
terraform fmt -check=true -diff=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment