Skip to content
GitHub

IaC (Terraform)

Your agent can turn a plain-language infrastructure request into reviewed Terraform or OpenTofu, and stop at a plan you approve.

You need agentbundle first. Install it from inside the repository where your infrastructure code lives:

cd path/to/your-repo
agentbundle install --pack iac-terraform

You also need Core, Governance Extras, and the terraform or tofu command on your path.

  • Record the infrastructure decision as an ADR before it writes any code.
  • Write a spec and schema-grounded .tf files from your intent, with format, validate, policy, and security checks.
  • Stop at a terraform plan with a pinned digest, for you to review.
  • Audit drift against the last plan and propose accept, correct, or defer for each resource.
  • Check an incoming infrastructure diff against your ADRs.
  • generate-iac — Decides, specifies, writes the Terraform, and stops at a pinned plan. It never runs apply.
  • reconcile-iac — Audits drift, runs a pre-change check, and checks a diff against your ADRs. It never applies on its own.

Works with Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Kiro IDE, and Kiro CLI. Install Core and Governance Extras first. AWS, GCP, and Databricks are validated. Azure and other providers are marked experimental. See Change infrastructure and Release Engineering for shipping the change.

Does it run terraform apply? No. It stops at a reviewed plan. You, or your CI pipeline, run apply. Deleting resources and migrating data always wait for you.

Does it touch my state files or secrets? No. State, backends, and locking stay with your pipeline. It never generates, stores, or reads a secret. Reference them as environment variables or Vault references.

Does it call my cloud? No. It reads provider schemas and registries through terraform init. It makes no direct cloud API calls.

Terraform or OpenTofu? Both. They share a baseline, and OpenTofu differences load only when you choose it.

Scope: repo (default) · Version: 0.1.12 · Source: packs/iac-terraform