跳过主要内容
W

dsh-terraform

wode25500/dsh-terraform

基础设施即代码:plan/apply 门控、state/output 检查与配置校验。

安装

dsh plugin --profile web add github:wode25500/dsh-terraform

README

dsh-terraform

dsh-terraform

HashiCorp Terraform 的 DeepSeek Harness 插件 —— 让 dsh 智能体管理基础设施即代码(IaC): plan/apply 门控、state 检查、output 查询、资源校验。

独立社区项目,非官方。基于 hashicorp/terraform(BSL-1.1/MPL-2.0)。

特性

  • 8 个原生工具:tf_init / tf_plan / tf_apply / tf_destroy / tf_state / tf_output / tf_show / tf_validate
  • 只读操作为主(plan/state/output/show/validate),安全边界清晰
  • plan 的 -detailed-exitcode 语义(exit 2 = 有变更)在输出中标注
  • 支持 plan 文件模式(plan -outapply tfplan)——可复现、可审阅
  • Schemastery 配置 + bundle patch 层

安装

- insert:
    - id: terraform
      name: './src/index.js'
      config:
        terraformPath: terraform
        workdir: ./infra
pnpm dsh web --patch ./dsh-terraform/cordis.patch.yml

配置项

默认说明
terraformPathterraformterraform 路径
workdir默认配置目录
timeoutMs120000单次超时

许可

MIT。

相关插件