Terramate
$ terramate Official High Riskterramate organizes large Terraform and OpenTofu repositories into isolated stacks with code generation, DAG ordering, and git-based --changed filtering. Agents can inspect affected stacks safely via terramate list --changed and --dry-run before executing terramate run.
brew install terramate Local git-aware IaC orchestrator and HCL code generator; executes local terraform/tofu binaries directly.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Strong --dry-run, --changed, and --log-fmt json flags for headless CI/agent pipelines, though terramate list itself emits line-oriented text rather than JSON.
- Supports
--dry-run,--changed, and--log-fmt=json terramate listoutputs plain-text paths rather than JSON
Because terramate run executes arbitrary commands across multiple stacks, blast radius is high; --dry-run and --disable-safeguards defaults help guard against dirty git trees.
- Built-in git dirty-worktree safeguards and
--dry-runpreview terramate runcan fan out destructive IaC commands across stacks
Single static Go binary across macOS, Linux, and Windows via Homebrew, Go, and release binaries.
- Cross-platform Go binary with zero runtime dependencies
--changed prevents agents from needlessly running plan across dozens of untouched stacks.
- Git change detection and DAG ordering cut CI/agent execution scope
Official terramate-io/terramate repository under MPL-2.0 with frequent releases.
- Official vendor CLI under MPL-2.0
Well-structured docs at terramate.io/docs/cli/ detailing safeguards, codegen, and flags.
- Comprehensive CLI documentation at terramate.io
Security, Auth & Guardrails
Local stack orchestration needs no auth; optional Terramate Cloud sync uses browser login (terramate cloud login) or TM_CLOUD_TOKEN / OIDC.
Core CLI is MPL-2.0 open-source and free; Terramate Cloud offers optional paid team tiers.
# Terramate Agent Rules - Always run `terramate list --changed` and `--dry-run` before executing `terramate run`. - Restrict `terramate run` to read-only commands (`terraform plan`, `tflint`) unless apply is explicitly approved. - Never run `terramate run -- terraform apply` without user confirmation.
Agent-Ready Command Recipes
Safe Read-Only Queries
terramate list --changed
Uses git diff to identify modified stacks without executing any Terraform commands.
terramate run --changed --dry-run -- terraform plan
Prints the exact execution order and commands for changed stacks without running them.
Controlled Writes & Previews
terramate generate
Synthesizes configured backend/provider HCL files across stacks locally.
Strengths for Agents
- + Git-aware
--changedfiltering scopes orchestration strictly to modified stacks. - +
--dry-runand built-in git clean-tree safeguards prevent accidental multi-stack runs. - + Supports
--log-fmt jsonfor structured runner logs.
Caveats & Pitfalls
- !
terramate listoutputs plain text instead of structured JSON. - ! Running
terramate runwithout--dry-runcan invoke arbitrary commands across many stacks at once.