terraform-infrastructure
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTerraform Infrastructure Workflow
Terraform 基础设施工作流
Overview
概述
Specialized workflow for infrastructure as code using Terraform including resource provisioning, module creation, state management, and multi-environment deployments.
使用Terraform的专业化基础设施即代码工作流,包括资源配置、模块创建、状态管理和多环境部署。
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
在以下场景使用此工作流:
- 配置云基础设施
- 创建Terraform模块
- 管理多环境基础设施
- 实施IaC最佳实践
- 搭建Terraform工作流
Workflow Phases
工作流阶段
Phase 1: Terraform Setup
阶段1:Terraform 初始化设置
Skills to Invoke
要调用的技能
- - Terraform basics
terraform-skill - - Advanced Terraform
terraform-specialist
- - Terraform 基础操作
terraform-skill - - Terraform 进阶操作
terraform-specialist
Actions
操作步骤
- Initialize Terraform
- Configure backend
- Set up providers
- Configure variables
- Create outputs
- 初始化Terraform
- 配置后端存储
- 设置云服务商
- 配置变量
- 创建输出项
Copy-Paste Prompts
可复制粘贴的提示语
Use @terraform-skill to set up Terraform projectUse @terraform-skill to set up Terraform projectPhase 2: Resource Provisioning
阶段2:资源配置
Skills to Invoke
要调用的技能
- - Terraform modules
terraform-module-library - - Cloud architecture
cloud-architect
- - Terraform 模块库
terraform-module-library - - 云架构设计
cloud-architect
Actions
操作步骤
- Design infrastructure
- Create resource definitions
- Configure networking
- Set up compute
- Add storage
- 设计基础设施架构
- 创建资源定义
- 配置网络
- 设置计算资源
- 添加存储资源
Copy-Paste Prompts
可复制粘贴的提示语
Use @terraform-module-library to provision cloud resourcesUse @terraform-module-library to provision cloud resourcesPhase 3: Module Creation
阶段3:模块创建
Skills to Invoke
要调用的技能
- - Module creation
terraform-module-library
- - 模块创建
terraform-module-library
Actions
操作步骤
- Design module interface
- Create module structure
- Define variables/outputs
- Add documentation
- Test module
- 设计模块接口
- 创建模块结构
- 定义变量/输出项
- 添加文档
- 测试模块
Copy-Paste Prompts
可复制粘贴的提示语
Use @terraform-module-library to create reusable Terraform moduleUse @terraform-module-library to create reusable Terraform modulePhase 4: State Management
阶段4:状态管理
Skills to Invoke
要调用的技能
- - State management
terraform-specialist
- - 状态管理
terraform-specialist
Actions
操作步骤
- Configure remote backend
- Set up state locking
- Implement workspaces
- Configure state access
- Set up backup
- 配置远程后端
- 设置状态锁定
- 实现工作区
- 配置状态访问权限
- 设置备份机制
Copy-Paste Prompts
可复制粘贴的提示语
Use @terraform-specialist to configure Terraform stateUse @terraform-specialist to configure Terraform statePhase 5: Multi-Environment
阶段5:多环境部署
Skills to Invoke
要调用的技能
- - Multi-environment
terraform-specialist
- - 多环境管理
terraform-specialist
Actions
操作步骤
- Design environment structure
- Create environment configs
- Set up variable files
- Configure isolation
- Test deployments
- 设计环境架构
- 创建环境配置
- 设置变量文件
- 配置环境隔离
- 测试部署流程
Copy-Paste Prompts
可复制粘贴的提示语
Use @terraform-specialist to set up multi-environment TerraformUse @terraform-specialist to set up multi-environment TerraformPhase 6: CI/CD Integration
阶段6:CI/CD 集成
Skills to Invoke
要调用的技能
- - CI/CD
cicd-automation-workflow-automate - - GitHub Actions
github-actions-templates
- - CI/CD 自动化
cicd-automation-workflow-automate - - GitHub Actions 模板
github-actions-templates
Actions
操作步骤
- Create CI pipeline
- Configure plan/apply
- Set up approvals
- Add validation
- Test pipeline
- 创建CI流水线
- 配置计划/应用流程
- 设置审批机制
- 添加验证步骤
- 测试流水线
Copy-Paste Prompts
可复制粘贴的提示语
Use @cicd-automation-workflow-automate to create Terraform CI/CDUse @cicd-automation-workflow-automate to create Terraform CI/CDPhase 7: Security
阶段7:安全配置
Skills to Invoke
要调用的技能
- - Secrets management
secrets-management - - Security
terraform-specialist
- - 密钥管理
secrets-management - - 安全配置
terraform-specialist
Actions
操作步骤
- Configure secrets
- Set up encryption
- Implement policies
- Add compliance
- Audit access
- 配置密钥
- 设置加密机制
- 实施安全策略
- 添加合规检查
- 审计访问权限
Copy-Paste Prompts
可复制粘贴的提示语
Use @secrets-management to secure Terraform secretsUse @secrets-management to secure Terraform secretsQuality Gates
质量检查项
- Resources provisioned
- Modules working
- State configured
- Multi-env tested
- CI/CD working
- Security verified
- 资源已配置完成
- 模块可正常工作
- 状态已正确配置
- 多环境已测试通过
- CI/CD 流水线可正常运行
- 安全配置已验证
Related Workflow Bundles
相关工作流包
- - Cloud/DevOps
cloud-devops - - Kubernetes
kubernetes-deployment - - AWS specific
aws-infrastructure
- - 云原生/DevOps
cloud-devops - - Kubernetes 部署
kubernetes-deployment - - AWS 专属基础设施
aws-infrastructure