- migrate from individual terraform files to config-driven terragrunt module structure - add vault_cluster module with config discovery system - replace individual .tf files with centralized config.hcl - restructure auth and secret backends as configurable modules - move auth roles and secret backends to yaml-based configuration - convert policies from .hcl to .yaml format, add rules/auth definition - add pre-commit hooks for yaml formatting and file cleanup - add terragrunt cache to gitignore - update makefile with terragrunt commands and format target
30 lines
720 B
Makefile
30 lines
720 B
Makefile
.PHONY: init plan apply format
|
|
|
|
#init:
|
|
# @echo "Sourcing environment and initializing Terraform..."
|
|
# @source ./env && terraform init
|
|
#
|
|
#plan:
|
|
# @echo "Sourcing environment and planning Terraform changes..."
|
|
# @source ./env && terraform plan
|
|
#
|
|
#apply:
|
|
# @echo "Sourcing environment and applying Terraform changes..."
|
|
# @source ./env && terraform apply -auto-approve
|
|
|
|
|
|
init:
|
|
@terragrunt run --all --non-interactive init -- -upgrade
|
|
|
|
plan: init
|
|
@terragrunt run --all --parallelism 4 --non-interactive plan
|
|
|
|
apply: init
|
|
@terragrunt run --all --parallelism 2 --non-interactive apply
|
|
|
|
format:
|
|
@echo "Formatting Terraform files..."
|
|
@terraform fmt -recursive .
|
|
@echo "Formatting Terragrunt files..."
|
|
@terragrunt hcl fmt
|