首页/ AI 技能 / @skilllib/skill-2117939930272410489
Skill站外收录 @skilllib/skill-2117939930272410489

terraform-module-creator

自动化生成符合标准的 Terraform 模块基础结构,包括必要的配置文件、变量定义、输出声明及文档模板,确保新建模块与团队规范一致,为后续开发提供开箱即用的脚手架支持。

0.0 (0) 16 次安装 原作者 编程导航
收录于 2026-01-22
软件开发 AI 技能

Skills.MD

# Terraform Module Creator This skill assists in scaffolding new Terraform modules following the standards defined in `terraform-module-library`. ## Quick Start To create a new module, you should create the following directory structure: ```bash mkdir -p modules/<module-name> touch modules/<module-name>/{main,variables,outputs,versions}.tf touch modules/<module-name>/README.md ``` ## Template Files ### versions.tf ```hcl terraform { required_version = ">= 1.0" required_providers { google = { source = "hashicorp/google" version = ">= 4.0" } } } ``` ### variables.tf ```hcl variable "project_id" { description = "The project ID" type = string } ``` ### outputs.tf ```hcl output "id" { description = "The ID of the created resource" value = google_resource.main.id } ``` ## Relationship with terraform-module-library - Use **terraform-module-creator** (this skill) for the initial file creation and setup. - Use **terraform-module-library** for design patterns, best practices, and internal code logic.

评论 0

还没有评论,来抢沙发。