feat: major restructuring in migration to terragrunt
- 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
This commit is contained in:
@@ -1,20 +1,29 @@
|
||||
.PHONY: init plan apply help
|
||||
.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
|
||||
|
||||
# Default target
|
||||
help:
|
||||
@echo "Available targets:"
|
||||
@echo " init - Initialize Terraform"
|
||||
@echo " plan - Plan Terraform changes"
|
||||
@echo " apply - Apply Terraform changes"
|
||||
|
||||
init:
|
||||
@echo "Sourcing environment and initializing Terraform..."
|
||||
@source ./env && terraform init
|
||||
@terragrunt run --all --non-interactive init -- -upgrade
|
||||
|
||||
plan:
|
||||
@echo "Sourcing environment and planning Terraform changes..."
|
||||
@source ./env && terraform plan
|
||||
plan: init
|
||||
@terragrunt run --all --parallelism 4 --non-interactive plan
|
||||
|
||||
apply:
|
||||
@echo "Sourcing environment and applying Terraform changes..."
|
||||
@source ./env && terraform apply -auto-approve
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user