跳到正文
Skillpedia
部署与云(DevOps)48k · #5963

terraform-infrastructure

它能做什么

这个工具可以借助特定代码,帮你整理和创建云端的计算基础设施(比如服务器和网络)。它让你更轻松、更安全地管理这些基础设施,尤其是在需要多个版本或多套环境的时候。

适用场景

  • ✓当你需要在云端创建服务器和网络时。
  • ✓当你想创建可复用的基础设施“组件”时。
  • ✓当你需要管理基础设施的不同版本(例如测试环境和生产环境)时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/terraform-infrastructure/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/terraform-infrastructure/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“用 Terraform 为一个新网站搭建基础设施。”

每周 5 个新技能,1 分钟读完。

工作原理

你编写代码,描述基础设施应该是什么样子。工具读取这些代码,然后创建或更新云资源,使其与你的描述保持一致。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Terraform Infrastructure Workflow

Overview

Specialized workflow for infrastructure as code using Terraform including resource provisioning, module creation, state management, and multi-environment deployments.

When to Use This Workflow

Use this workflow when:

  • Provisioning cloud infrastructure
  • Creating Terraform modules
  • Managing multi-environment infra
  • Implementing IaC best practices
  • Setting up Terraform workflows

Workflow Phases

Phase 1: Terraform Setup

Skills to Invoke

  • terraform-skill - Terraform basics
  • terraform-specialist - Advanced Terraform

Actions

  1. Initialize Terraform
  2. Configure backend
  3. Set up providers
  4. Configure variables
  5. Create outputs

Copy-Paste Prompts

Use @terraform-skill to set up Terraform project

Phase 2: Resource Provisioning

Skills to Invoke

  • terraform-module-library - Terraform modules
  • cloud-architect - Cloud architecture

Actions

  1. Design infrastructure
  2. Create resource definitions
  3. Configure networking
  4. Set up compute
  5. Add storage

Copy-Paste Prompts

Use @terraform-module-library to provision cloud resources

Phase 3: Module Creation

Skills to Invoke

  • terraform-module-library - Module creation

Actions

  1. Design module interface
  2. Create module structure
  3. Define variables/outputs
  4. Add documentation
  5. Test module

Copy-Paste Prompts

Use @terraform-module-library to create reusable Terraform module

Phase 4: State Management

Skills to Invoke

  • terraform-specialist - State management

Actions

  1. Configure remote backend
  2. Set up state locking
  3. Implement workspaces
  4. Configure state access
  5. Set up backup

Copy-Paste Prompts

Use @terraform-specialist to configure Terraform state

Phase 5: Multi-Environment

Skills to Invoke

  • terraform-specialist - Multi-environment

Actions

  1. Design environment structure
  2. Create environment configs
  3. Set up variable files
  4. Configure isolation
  5. Test deployments

Copy-Paste Prompts

Use @terraform-specialist to set up multi-environment Terraform

Phase 6: CI/CD Integration

Skills to Invoke

  • cicd-automation-workflow-automate - CI/CD
  • github-actions-templates - GitHub Actions

Actions

  1. Create CI pipeline
  2. Configure plan/apply
  3. Set up approvals
  4. Add validation
  5. Test pipeline

Copy-Paste Prompts

Use @cicd-automation-workflow-automate to create Terraform CI/CD

Phase 7: Security

Skills to Invoke

  • secrets-management - Secrets management
  • terraform-specialist - Security

Actions

  1. Configure secrets
  2. Set up encryption
  3. Implement policies
  4. Add compliance
  5. Audit access

Copy-Paste Prompts

Use @secrets-management to secure Terraform secrets

Quality Gates

  • Resources provisioned
  • Modules working
  • State configured
  • Multi-env tested
  • CI/CD working
  • Security verified

Related Workflow Bundles

  • cloud-devops - Cloud/DevOps
  • kubernetes-deployment - Kubernetes
  • aws-infrastructure - AWS specific

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题

什么是“基础设施即代码”?

这是一种通过机器可读的定义文件来管理和配置 IT 基础设施的做法,而不是手动配置或使用交互式工具。

什么是 Terraform?

Terraform 是一款流行的“基础设施即代码”工具,让你能够安全、高效地描述并部署云端基础设施。

什么是“模块”?

模块是可在不同项目或环境中复用的 Terraform 资源集合,有助于保持一致性并减少代码重复。

详情

作者的原始描述

Terraform infrastructure as code workflow for provisioning cloud resources, creating reusable modules, and managing infrastructure at scale.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5963
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能