32 lines
776 B
Makefile
32 lines
776 B
Makefile
|
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
|