terraform-policy
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseterraform-policy
Terraform Policy
UTILITY SKILL — INVOKES: tfpolicy-author | tfpolicy-test
实用工具技能 — 调用:tfpolicy-author | tfpolicy-test
USE FOR:
适用场景:
- Writing a new policy from a description or requirement
.policy.hcl - Converting a policy to Terraform Policy
.sentinel - Writing or debugging a test file
.policytest.hcl - Migrating a Sentinel policy library to Terraform Policy
- 根据描述或需求编写新的策略
.policy.hcl - 将策略转换为Terraform Policy
.sentinel - 编写或调试测试文件
.policytest.hcl - 将Sentinel策略库迁移至Terraform Policy
DO NOT USE FOR:
不适用场景:
- Writing files for Terraform modules — use
.tftest.hclterraform-test - General Terraform HCL authoring — use
terraform-style-guide
- 为Terraform模块编写文件——请使用
.tftest.hclterraform-test - 通用Terraform HCL编写——请使用
terraform-style-guide
Routing
路由规则
| Task | Sub-skill |
|---|---|
Write or convert a | tfpolicy-author |
Write or debug a | tfpolicy-test |
| 任务 | 子技能 |
|---|---|
编写或转换 | tfpolicy-author |
编写或调试 | 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