部署与运维

huawei-cloud-terraform-generator

huaweicloud/hua…d-skills

Generate Huawei Cloud Terraform configurations and execute deployment with user-guided approval. Use this skill when users want to create Huawei Cloud infrastructure as Terraform, whether they ask explicitly for Terraform or describe goals such as deploying a website, launching an application, or creating network, compute, database, load balancing, or storage resources. Trigger when users mention 创建/create、生成/generate、部署/deploy、配置/configure、使用/use、管理/manage、华为云/Huawei Cloud、Terraform、ECS、VPC、资源/resource、云服务器/ECS、虚拟机/VM、实例/instance、网络/network、负载均衡/ELB、数据库/database、RDS、存储/storage、OBS、桶/bucket、域名/domain、DNS、证书/certificate、SSL、监控/monitoring、日志/log、备份/backup、容器/container、CCE、函数工作流/FunctionGraph

  • 1.7万 次安装
  • 59 星标
  • 收录于

安装命令

npx skills add https://github.com/huaweicloud/huaweicloud-skills --skill huawei-cloud-terraform-generator

SKILL.md

Huawei Cloud Terraform Generator

1. Overview

This skill turns user infrastructure goals into Terraform configurations for Huawei Cloud. The primary workflow is to:

  1. understand the user's actual deployment intent
  2. determine which resources should be created
  3. determine whether existing resources should be reused
  4. confirm key specifications and dependencies
  5. verify every resource specification against the target region's available resources — query first, write later
  6. ensure Terraform is installed
  7. generate Terraform configuration files
  8. run validation steps and fix generation issues until terraform plan succeeds
  9. ask user for confirmation and execute terraform apply if approved

This skill provides an interactive workflow where the agent guides the user through credential configuration, validates the plan, and executes apply upon explicit user confirmation.

2. Prerequisites