avx-pmarie-aws-infra/Makefile

44 lines
1.1 KiB
Makefile
Raw Permalink 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
2023-04-04 17:01:16 +02:00
init-upgrade:
@echo
@echo "Upgrading all providers with Terragrunt..."
@echo
@terragrunt run-all --terragrunt-non-interactive --terragrunt-working-dir infra init -upgrade
providers-lock:
@echo
@echo "Locking all providers with Terragrunt..."
@echo
@terragrunt run-all --terragrunt-non-interactive --terragrunt-working-dir infra providers lock -platform=linux_amd64
2022-07-01 14:12:11 +02:00
.PHONY: format validate plan apply