terraform-module-library
构建可复用的 Terraform 模块
团队需要能跨云项目使用的一致 Terraform 模块。此技能提供可复用的 AWS、Azure 和 GCP 模块模式,并包含示例、验证指导和测试实践。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "terraform-module-library" from https://skillstore.io/skills/wshobson-terraform-module-library.md and its manifest at https://skillstore.io/api/skills/wshobson-terraform-module-library/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“terraform-module-library”。 请求一个可复用的 AWS VPC 模块模式。
预期结果:
一个模块计划,包含主要 resources、必需 variables、有用 outputs、validation checks、tagging 指导,以及完整的 example 文件夹。
正在使用“terraform-module-library”。 询问如何组合 VPC 和 RDS 模块。
预期结果:
一个组合大纲,展示 module sources、共享 network outputs、database inputs、tag propagation 和 environment naming conventions。
正在使用“terraform-module-library”。 请求一份模块审查清单。
预期结果:
一份聚焦清单,覆盖 provider pinning、semantic versioning、examples、Terratest 覆盖、input validation、encryption、logging 和 least privilege。
安全审计
安全The detected items are false positives from Markdown fences, Terraform examples, private CIDR examples, relative module paths, and Terraform resource attribute names. I found no prompt injection, exfiltration intent, command execution, or unsafe file access in the reviewed files.
风险因素
⚡ 包含脚本 (1)
⚙️ 外部命令 (20)
🌐 网络访问 (4)
📁 文件系统访问 (3)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/wshobson-terraform-module-library/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/wshobson-terraform-module-library?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/wshobson-terraform-module-library?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/wshobson-terraform-module-library/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/wshobson-terraform-module-library.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
wshobson. (2026). terraform-module-library security audit report (audit version 8) [Author version unspecified]. Skillstore. https://skillstore.io/skills/wshobson-terraform-module-library/audits/8BibTeX 引用
@techreport{wshobson-wshobson-terraform-module-library-2026,
author = {wshobson},
title = {terraform-module-library security audit report (audit version 8)},
institution = {Skillstore},
year = {2026},
number = {8},
url = {https://skillstore.io/skills/wshobson-terraform-module-library/audits/8},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "terraform-module-library security audit report (audit version 8)"
version: "unspecified"
type: report
authors:
- name: "wshobson"
date-released: "2026-07-08"
url: "https://skillstore.io/skills/wshobson-terraform-module-library/audits/8"
identifiers:
- type: other
value: "skillstore:wshobson-terraform-module-library:audit:8"
description: "Skillstore immutable audit report identifier"
比较变体
2 个可安装变体每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
标准化平台模块
创建遵循统一仓库布局的共享 VPC、数据库、集群和存储模块。
引导云项目启动
为新的 AWS、Azure 或 GCP 基础设施项目起草可复用的模块脚手架。
改进 IaC 审查
根据文档化实践,审查 Terraform 模块在 inputs、outputs、tags、examples 和 tests 方面的变更。
试试这些提示
为 AWS VPC 创建一个 Terraform 模块结构。包含 main 文件、variables、outputs、一个 example,以及简短的 README 大纲。
审查此 Terraform 模块,并添加有用的 variable validation、清晰的 output values、provider constraints 和一致的 tags。
设计一个组合 VPC 和 RDS 模块的 Terraform stack。解释 inputs、outputs、dependencies 和 environment-specific variables。
从可复用性、安全默认值、文档质量、测试覆盖和发布就绪状态方面审计此 Terraform 模块。
最佳实践
- 在将生成的 Terraform 应用于任何云账户之前,先结合 plan output 进行审查。
- 固定 provider 版本,并记录每个 variable、output、example 和受支持的 module version。
- 在将模块推广到生产使用之前,先在隔离账户或项目中测试。
避免
- 不要在未经同行审查的情况下,对生产环境运行生成的 apply 或 destroy commands。
- 不要发布隐藏必需 inputs 或省略安全敏感默认值的模块。
- 不要在未根据你的环境进行调整的情况下复制示例 CIDR ranges、regions 或 instance sizes。
常见问题
此技能会自动创建 Terraform 文件吗?
覆盖哪些云提供商?
我可以将它与 Claude、Codex 和 Claude Code 一起使用吗?
这些 Terraform 按原样可用于生产吗?
为什么安全风险标记为 medium?
该技能是否包含 prompt injection 文本?
开发者详情
作者
wshobson许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
64ca8af0f54a325752f08bd54e52151061ea659a
维护新鲜度
2026/7/24
使用量
13 次下载 · 214 次浏览
文件结构