dsh-terraform
开发工具 活跃维护

dsh-terraform

WODE25500/dsh-terraform

原生适配Terraform生态,支持plan/apply门控、state/output查询、配置校验,无额外依赖即可接入现有IaC工作流,保障基础设施变更安全。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
8 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:WODE25500/dsh-terraform
git clone https://github.com/WODE25500/dsh-terraform.git
git clone git@github.com:WODE25500/dsh-terraform.git
README.md main

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

配置项

默认 说明
terraformPath terraform terraform 路径
workdir 默认配置目录
timeoutMs 120000 单次超时

许可

MIT。