avx-pmarie-aws-infra/Makefile

32 lines
776 B
Makefile
Raw Normal View History

2022-07-01 14:12:11 +02:00
format:
@echo
@echo "Running terraform fmt & terragrunt hclfmt..."
@echo
@terraform fmt -recursive
@terragrunt hclfmt
validate:
@echo
@echo "Validating infrastructure with Terragrunt..."
@echo
@terragrunt run-all --terragrunt-non-interactive --terragrunt-working-dir infra validate
plan:
@echo
@echo "Planning infrastructure"
@echo
@terragrunt run-all --terragrunt-non-interactive --terragrunt-working-dir infra plan
apply:
@echo
@echo "Planning infrastructure"
@echo
@terragrunt run-all --terragrunt-non-interactive --terragrunt-working-dir infra apply
destroy:
@echo
@echo "Destroying infrastructure with Terragrunt..."
@echo
@terragrunt run-all --terragrunt-non-interactive --terragrunt-working-dir infra destroy
.PHONY: format validate plan apply