Generated individual stack directories for all 66 services under stacks/. Each stack has terragrunt.hcl (depends on platform) and main.tf (thin wrapper calling existing module). Migrated all 64 active service states from root terraform.tfstate to individual state files. Root state is now empty. Verified with terragrunt plan on multiple stacks (no changes).
19 lines
468 B
HCL
19 lines
468 B
HCL
variable "hackmd_db_password" { type = string }
|
|
variable "tls_secret_name" { type = string }
|
|
|
|
locals {
|
|
tiers = {
|
|
core = "0-core"
|
|
cluster = "1-cluster"
|
|
gpu = "2-gpu"
|
|
edge = "3-edge"
|
|
aux = "4-aux"
|
|
}
|
|
}
|
|
|
|
module "hackmd" {
|
|
source = "../../modules/kubernetes/hackmd"
|
|
hackmd_db_password = var.hackmd_db_password
|
|
tls_secret_name = var.tls_secret_name
|
|
tier = local.tiers.edge
|
|
}
|