terraform-policy

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

terraform-policy

Terraform Policy

UTILITY SKILL — INVOKES: tfpolicy-author | tfpolicy-test
实用工具技能 — 调用:tfpolicy-author | tfpolicy-test

USE FOR:

适用场景:

  • Writing a new
    .policy.hcl
    policy from a description or requirement
  • Converting a
    .sentinel
    policy to Terraform Policy
  • Writing or debugging a
    .policytest.hcl
    test file
  • Migrating a Sentinel policy library to Terraform Policy
  • 根据描述或需求编写新的
    .policy.hcl
    策略
  • .sentinel
    策略转换为Terraform Policy
  • 编写或调试
    .policytest.hcl
    测试文件
  • 将Sentinel策略库迁移至Terraform Policy

DO NOT USE FOR:

不适用场景:

  • Writing
    .tftest.hcl
    files for Terraform modules — use
    terraform-test
  • General Terraform HCL authoring — use
    terraform-style-guide
  • 为Terraform模块编写
    .tftest.hcl
    文件——请使用
    terraform-test
  • 通用Terraform HCL编写——请使用
    terraform-style-guide

Routing

路由规则

TaskSub-skill
Write or convert a
.policy.hcl
policy
tfpolicy-author
Write or debug a
.policytest.hcl
test
tfpolicy-test
任务子技能
编写或转换
.policy.hcl
策略
tfpolicy-author
编写或调试
.policytest.hcl
测试
tfpolicy-test

Examples

示例

  • "Block EC2 instances without encryption" → tfpolicy-author
  • "Convert this Sentinel policy to tfpolicy" → tfpolicy-author
  • "Write a policytest for my EBS policy" → tfpolicy-test
  • "阻止未加密的EC2实例" → tfpolicy-author
  • "将此Sentinel策略转换为tfpolicy" → tfpolicy-author
  • "为我的EBS策略编写policytest" → tfpolicy-test

Troubleshooting

故障排查

  • Wrong skill triggered? Load the sub-skill directly from the routing table above.
bash
npx skills add hashicorp/agent-skills/terraform/terraform-policy/skills/tfpolicy-author
npx skills add hashicorp/agent-skills/terraform/terraform-policy/skills/tfpolicy-test
  • 触发了错误的技能? 直接从上方的路由规则中加载对应的子技能。
bash
npx skills add hashicorp/agent-skills/terraform/terraform-policy/skills/tfpolicy-author
npx skills add hashicorp/agent-skills/terraform/terraform-policy/skills/tfpolicy-test