Terraform
$ terraform Official High RiskHashiCorp Terraform (terraform) provisions multi-cloud infrastructure declaratively from HCL configurations, delivering exemplary automation primitives: -json machine output, -input=false, -no-color, mandatory plan previews, and terraform show -json / validate -json.
brew install hashicorp/tap/terraform terraform runs validate -json, plan -out, and show -json locally against repo HCL and state files with mature LLM familiarity.
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
Supports -json across validate, plan, apply, show, and output, plus -input=false and -no-color.
- Supports
-json,-input=false,-no-color, andshow -json
Two-phase plan -out + show -json + apply <plan> workflow prevents surprise replacements, though remote state files can contain plaintext secrets.
- Saved plan artifacts guarantee apply matches reviewed diff
Single static Go binary across macOS, Linux, and Windows, though terraform init downloads provider binaries.
- Single Go binary via
brew install hashicorp/tap/terraform
De facto multi-cloud IaC standard with deep LLM pretraining accuracy.
- Universal multi-cloud provider ecosystem
Official hashicorp/terraform maintained actively, though 2023 switch to BSL-1.1 prompted the OpenTofu fork.
- Official
hashicorp/terraformunder BSL-1.1
Exhaustive HashiCorp Developer CLI and provider documentation.
- Complete docs at developer.hashicorp.com/terraform
Security, Auth & Guardrails
Stores registry tokens in ~/.terraform.d/credentials.tfrc.json or TF_TOKEN_*, while provider auth uses cloud env vars (AWS_*, GOOGLE_*, ARM_*).
CLI binary is free under BSL-1.1 (HCP Terraform cloud features are tiered); provisioned infra incurs cloud billing.
# Terraform Agent Rules - ALWAYS pass `-input=false -no-color` (and `-json` where supported) to prevent hangs. - Run `terraform validate -json` and `terraform plan -out=tfplan.bin` first; inspect `terraform show -json tfplan.bin` for `delete`/replacement actions. - NEVER run `terraform apply -auto-approve` or `terraform destroy` without explicit human review.
Agent-Ready Command Recipes
Safe Read-Only Queries
terraform validate -json -no-color
Checks configuration validity locally and outputs structured diagnostics JSON.
terraform plan -input=false -no-color -out=tfplan.bin && terraform show -json tfplan.bin
Generates a non-interactive execution plan and prints full resource diffs in JSON.
Controlled Writes & Previews
terraform apply -input=false -no-color -json tfplan.bin
Executes the exact reviewed tfplan.bin with streaming JSON events and zero unexpected drift.
Strengths for Agents
- + Saved
plan -out+show -json+apply <plan>gives gold-standard change verification. - +
-input=falseand-no-colorguarantee clean, non-hanging automation runs. - + Massive provider ecosystem and deep LLM fluency.
Caveats & Pitfalls
- ! BSL-1.1 license restricts embedding in competing SaaS/IaC products.
- ! Terraform state (
terraform show -json/terraform.tfstate) can expose sensitive attribute values in plaintext.