Install
openclaw skills install terraform-iacDeep Terraform/IaC workflow—module boundaries, state, workspaces, plan/apply safety, drift, secrets, CI integration, and team governance. Use when building infra as code, refactoring modules, or debugging state issues.
openclaw skills install terraform-iacTerraform’s sharp edges are state, modules, dependencies, and team workflow. Guide users toward reviewable plans, least blast radius, and recoverable mistakes.
Trigger conditions:
Initial offer:
Use six stages: (1) scope & structure, (2) modules & interfaces, (3) state & workspaces, (4) secrets & providers, (5) plan/apply & CI, (6) operations & drift. Confirm cloud(s) and remote state backend.
Goal: Repo layout matches team ownership and blast radius.
Exit condition: Directory layout diagram; what lives together vs separate states justified.
Goal: Reusable modules with clear inputs/outputs—not copy-paste with vars.
Exit contract: Module README: purpose, inputs table, example snippet.
Goal: One state per blast-radius boundary; no shared state accidents.
moved blocks (Terraform 1.x) for refactors; import for brownfield—plan carefullyExit condition: State ownership documented; who can run apply in prod.
Goal: No secrets in .tf committed; dynamic secrets where possible.
Exit condition: Secret flow diagram; rotation doesn’t require editing TF files by hand for normal ops.
Goal: Plan before apply; peer review for prod.
terraform fmt, validate, plan on PR; policy checks optionalprevent_destroy on critical resources when appropriateExit condition: Definition of done for infra change includes reviewed plan.
Goal: Detect manual console changes; reconcile safely.
plan in automation; import or revert manual changes with intentcount/for_each changes can destroy/recreate—use moved and lifecycle thoughtfully.