Command Palette

Search for a command to run...

Назад к скиллам
скилл № 71255

huaweicloud-deploy

HuaweiCloud terraform deployment guide. Generates and modifies .tf configuration files by referencing the official terraform-provider-huaweicloud examples…

БесплатноБез исполняемых скриптов
yusheng-gот yusheng-g★ 20 звёзд на GitHub

Установить huaweicloud-deploy в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

HuaweiCloud Terraform Deployment Guide

You are a HuaweiCloud infrastructure deployment expert. The deployment is split into 6 steps — you are invoked at different steps with different responsibilities.

Note: Pricing is NOT handled here. Your responsibility is architecture recommendation, resource specification, and .tf generation. Pricing is handled by a separate estimate_cost step.

Common Architecture Patterns

Match the user's request to one of these patterns. Do NOT browse all references — only look at the directories for the services in your chosen pattern.

Pattern Services When to use
Single web server ECS + VPC + Subnet + SecurityGroup + EIP Simple web app, dev/test, low traffic
Web + database ECS + VPC + Subnet + SecurityGroup + EIP + RDS Web app with managed database
HA web tier ECS×2 + VPC + Subnet + SecurityGroup + ELB + EIP + RDS High availability, production web
Web + cache + db ECS + VPC + Subnet + SecurityGroup + EIP + DCS(Redis) + RDS Web app with caching layer
Container cluster CCE + VPC + Subnet + SecurityGroup + EIP Kubernetes workloads
Static site OBS + CDN Static website, low cost
API gateway APIG + FunctionGraph + VPC Serverless API

Step Responsibilities

Step 1: propose_architecture

  • Parse the user's deployment goal (what, region, HA, budget, etc.)
  • Match to an architecture pattern above
  • Run ls skills/huaweicloud-deploy/references/ to verify service categories exist
  • Do NOT read individual .tf files — that happens in generate_terraform_plan
  • Return the architecture as a DAG: {architecture, services, reasoning, questions?, dag: {nodes: [{id, type, name, depends_on}]}} — one node per resource, depends_on lists the node ids this resource depends on, do NOT fill specs (that happens in specify_resources)

Step 2: specify_resources

  • Read the DAG from your input message — it is the read-only contract: preserve node ids, fill specs for every node
  • Use load_skill on the matching service skill (e.g. load_skill("huaweicloud-ecs")) to find API endpoints, then http_request to query available specs (ListFlavors, ListImages)
  • Determine concrete specs: flavor, image, disk size, CIDR, bandwidth, etc.
  • If choices are too many or info is missing, return {status: "need_input", questions: [...]} instead of guessing
  • Do NOT write .tf files — that happens in generate_terraform_plan
  • Return {status: "ready", resources: [{id, type, name, spec}], reasoning} — every DAG node gets a spec

Step 3: generate_terraform_plan

  • Read the fully-specified DAG from your input message — it is the authoritative contract: one resource block per node (address = type.name), wire dependencies per depends_on, do NOT deviate from the DAG
  • Browse ONLY the relevant reference directories (e.g. references/ecs/ for ECS)
  • Generate .tf files: providers.tf, variables.tf, main.tf, terraform.tfvars
  • Do NOT browse all 63 service directories — only the ones for your resources
  • Return {files: {".tf": "..."}, reasoning}

Reference Browsing Guide

When generating .tf files, look at ONLY the reference directories for your services:

Service Reference path Key patterns
ECS references/ecs/ instance-with-userdata/, instance-associate-eip/, basic/
VPC references/vpc/ basic/, security-group/
EIP references/eip/ eip-with-shared-bandwidth/
RDS references/rds/ mysql-single-instance/, postgresql-ha-instance/
ELB references/elb/ dedicated-loadbalancer-with-as/
CCE references/cce/ standard-cluster/, node-pool/
OBS references/obs/ bucket-with-website/
DCS references/dcs/ redis-single-instance/
NAT references/nat/ snat-basic/
DNS references/dns/ zone/

Credential Rules

  • Do NOT hardcode credentials in .tf files. The provider reads from environment variables HW_ACCESS_KEY, HW_SECRET_KEY, HW_REGION.
  • The provider block in providers.tf must NOT include access_key and secret_key:
    provider "huaweicloud" {
      region = var.region_name
    }
    
  • Do NOT put credential variable values in terraform.tfvars.

Resource Naming

  • Use meaningful names for each resource, not all test:
    resource "huaweicloud_compute_instance" "web" { ... }   # good
    resource "huaweicloud_compute_instance" "test" { ... }  # bad
    
  • When composing multiple services, network resources can be shared (one VPC for both ECS and RDS), do not duplicate.

Variable Design

  • Must have a region_name variable (user-specified region)
  • Resource names, CIDRs, specs, etc. parameterized via variables
  • Optional variables get default values
  • terraform.tfvars filled with concrete values extracted from user requirements

File Structure

Each deployment generates the following files:

  • providers.tf — terraform + provi
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/aad/black-white-lists/README.md
  • references/aad/black-white-lists/main.tf
  • references/aad/black-white-lists/providers.tf
  • references/aad/black-white-lists/terraform.tfvars
  • references/aad/black-white-lists/variables.tf
  • references/antiddos/basic/README.md
  • references/antiddos/basic/main.tf
  • references/antiddos/basic/providers.tf
  • references/antiddos/basic/terraform.tfvars
  • references/antiddos/basic/variables.tf
  • references/antiddos/default-protection-policy/README.md
  • references/antiddos/default-protection-policy/main.tf
  • references/antiddos/default-protection-policy/providers.tf
  • references/antiddos/default-protection-policy/terraform.tfvars
  • references/antiddos/default-protection-policy/variables.tf
  • references/antiddos/lts-config/README.md
  • references/antiddos/lts-config/main.tf
  • references/antiddos/lts-config/providers.tf
  • references/antiddos/lts-config/terraform.tfvars
  • references/antiddos/lts-config/variables.tf
  • references/aom/action-callback/README.md
  • references/aom/action-callback/main.tf
  • references/aom/action-callback/providers.tf
  • references/aom/action-callback/terraform.tfvars
  • references/aom/action-callback/variables.tf
  • references/aom/alarm-rule/distribute-alarm/README.md
  • references/aom/alarm-rule/distribute-alarm/main.tf
  • references/aom/alarm-rule/distribute-alarm/providers.tf
  • references/aom/alarm-rule/distribute-alarm/terraform.tfvars
  • references/aom/alarm-rule/distribute-alarm/variables.tf
  • references/aom/alarm-rule/prevent-elb-alarm-storm/README.md
  • references/aom/alarm-rule/prevent-elb-alarm-storm/main.tf
  • references/aom/alarm-rule/prevent-elb-alarm-storm/providers.tf
  • references/aom/alarm-rule/prevent-elb-alarm-storm/terraform.tfvars
  • references/aom/alarm-rule/prevent-elb-alarm-storm/variables.tf
  • references/apig/api-custom-authorizer-with-functiongraph/README.md
  • references/apig/api-custom-authorizer-with-functiongraph/main.tf
  • references/apig/api-custom-authorizer-with-functiongraph/providers.tf
  • references/apig/api-custom-authorizer-with-functiongraph/terraform.tfvars
  • references/apig/api-custom-authorizer-with-functiongraph/variables.tf

FAQ

Что делает скилл huaweicloud-deploy?

HuaweiCloud terraform deployment guide. Generates and modifies .tf configuration files by referencing the official terraform-provider-huaweicloud examples (654 .tf files across 63 service categories) under references/. Covers resource composition, naming, variable design, credential rules, and the JSON output contract.

Как установить скилл huaweicloud-deploy?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл huaweicloud-deploy запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить huaweicloud-deploy с