Huawei Ecsのロゴ

Huawei Ecs

組織
huaweicloud
huawei-ecs

Use when creating, configuring, managing, or troubleshooting ECS instances on Huawei Cloud. Covers instance creation (hcloud ECS CreateServers), flavor selection, image management, security groups, EIP binding, disk attachment, auto-scaling (AS), and troubleshooting. Triggers on: ECS, instance, flavor, image, security group, EIP, EVS, auto-scaling. NOT for: CCE container workloads (use huawei-cce), BMS bare metal servers. HC活动场景(ECS+Nginx部署后端服务)触发词: HC活动, 华为HC, HC大会, 活动部署, HC ECS, 活动流程, 部署后端, Nginx部署, Nodejs部署, 上线后端服务, 部署个人网站, /hc-activity/.

Add to TypingMind

概要

公開者huaweicloud
リポジトリhuaweicloud-devkit
スキル名huawei-ecs
スター
70
フォーク
12
同梱ファイル
6
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 6個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    huaweicloudがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Huawei Ecs」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/huaweicloud/huaweicloud-devkit/tree/main/plugins/huaweicloud-core/skills/huawei-ecs
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-devkit.git /tmp/huaweicloud-devkit
mkdir -p .claude/skills
cp -r /tmp/huaweicloud-devkit/plugins/huaweicloud-core/skills/huawei-ecs .claude/skills/huawei-ecs
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでHuawei Ecsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にHuawei Ecsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Huawei Ecsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Huawei Cloud ECS

STOP - Do not answer from general knowledge. Follow the procedure below.

Always run hcloud <Service> <Operation> --help before constructing commands to discover exact parameter names and requirements.

Overview

Domain expertise for Huawei Cloud Elastic Cloud Server (ECS). Covers instance lifecycle, flavor selection, image management, networking, storage attachment, auto-scaling, and troubleshooting.

Prerequisites

Before creating an ECS instance from scratch, you MUST have:

  • A VPC (see huawei-vpc)
  • A subnet with DNS configured (see huawei-vpc)
  • A security group with application ports open (see huawei-vpc)

Deployment routing guard: if this skill was reached via a DEPLOYMENT intent (creating resources to host an application), load the huawei-iac skill FIRST and follow its orchestration flow - UNCONDITIONALLY. Reusing an existing VPC does NOT make it single-resource: the purchase still involves billable resources (ECS, system disk, EIP, keypair, SG rules) that must pass the cost+balance gate, batch approval, and state tracking. Only create directly here if the user explicitly declines the orchestration flow or the user only wants a lifecycle operation on an EXISTING instance (query/reboot/resize/delete). Discovery already done (flavors, images, AZs) carries over.

Critical Warnings

TrapWhy
Flavor not in regionNot all flavors available everywhere. Check with ECS ListFlavors first
Security group denies allNew SGs deny ALL inbound. Must explicitly add rules
Reusing existing security groupExisting SGs may have 0.0.0.0/0 rules. Before referencing, run hcloud VPC ListSecurityGroupRules --security_group_id.1= to audit inbound rules
EIP bills when idleUnattached EIP still incurs charges
Stopped instance still billsPay-per-use instances bill when stopped (unless shutdown-no-billing flavor)
Disk survives instance deleteDeleting instance does NOT delete system disk by default

Flavor Selection Guide

Flavor families are region-dependent. Always run hcloud ECS ListFlavors --cli-region=<r> to discover available flavors before recommending.

ScenarioFamilyWhat to look for
Web app / microservicesGeneral-purpose (ac, s, sn, c)2-4 vCPU, 4-8 GB RAM
Database / big dataMemory-optimized (m, r)4-8 vCPU, 16-64 GB RAM
AI inferenceGPU (g, p)8+ vCPU, 64+ GB RAM + GPU
HPCHigh-IO (h, ir, i)8+ vCPU, local SSD

See references/flavors.md for discovery workflow. Do not hardcode flavor names — availability changes by region and over time.

Common Workflows

TaskCommandSteps
List flavorshcloud ECS ListFlavors --cli-region=references/flavors.md
Create instancehcloud ECS CreateServers --server.name= --server.flavorRef= --server.imageRef= --server.nics.1.subnet_id= --server.availability_zone=references/create-instance.md
Find by nameSee "How to search for instances" below
Bind EIPhcloud EIP AssociatePublicips --publicip_id= --publicip.associate_instance_id= --publicip.associate_instance_type=PORTGet port ID from hcloud ECS ListServersDetails --server_id=<id> → OS-EXT-IPS:port_id
Security group rulehcloud VPC CreateSecurityGroupRule --security_group_id= --direction= --protocol=see huawei-vpc
Attach diskhcloud ECS AttachServerVolume --server_id= --volumeAttachment.volumeId=references/evs.md
Delete instancehcloud ECS DeleteServers --servers.1.id= --delete_publicip=true --delete_volume=truereferences/create-instance.md
Reboot instancehcloud ECS BatchRebootServers --reboot.servers.1.id= --reboot.type=SOFTNOT RebootServer — that operation does not exist
HC活动部署按量付费购买ECS+Nginx部署后端服务references/hc-activity.md

How to Search for Instances

ListServersDetails supports --name for exact match only. For fuzzy search:

  1. List all instances: hcloud ECS ListServersDetails --cli-region=<region> --limit=100
  2. Filter client-side by name substring, tag, or status
  3. Use --server_tags filter if instances are tagged: hcloud ECS ListServersDetails --server_tags.1.key=Project

Return structure: ListServersDetails returns {"servers": [...]} (array), NOT {"server": ...}. Parse as .servers[0].status, NOT .server.status.

Abort if the result set is larger than --limit and ask the user to narrow the search.

Instance Status Polling

ECS creation is asynchronous. Status transitions: BUILD → ACTIVE (or ERROR). Wait times vary widely (20s–3min), never use fixed sleep.

Poll strategy:

bash
for i in $(seq 1 30); do
  status=$(hcloud ECS ListServersDetails --cli-region=<region> --server_id=<id> --cli-output=json | jq -r '.servers[0].status')
  if [ "$status" = "ACTIVE" ]; then break; fi
  if [ "$status" = "ERROR" ]; then echo "Creation failed"; exit 1; fi
  sleep 10
done
  • Poll interval: 10 seconds
  • Maximum wait: 5 minutes (30 iterations)
  • Check for ERROR status to detect creation failures early

SSH Connection Verification

After ECS is ACTIVE and EIP is bound, verify SSH connectivity:

bash
hcloud ECS ListServersDetails --cli-region=<region> --server_id=<id>
# → addresses.<vpc-id>[].OS-EXT-IPS:addr

ssh -o StrictHostKeyChecking=accept-new -i <path-to-private-key> root@<eip-address>

SSH verification checklist: EIP bound → security group has port 22 ingress → keypair private key saved locally → known_hosts handled with StrictHostKeyChecking=accept-new (or delete stale entries with ssh-keygen -R <ip>).

Running Commands Inside the Instance

Use SSH for any in-instance operations (install software, check logs, start services):

bash
ssh -o StrictHostKeyChecking=accept-new -i <key> root@<eip> 'command'

Example — re-run failed cloud-init setup manually:

bash
ssh -o StrictHostKeyChecking=accept-new -i <key> root@<eip> 'dnf install -y nginx && systemctl enable --now nginx'

If SCP blocks SSH, use cloud-init --server.user_data for full deployment instead. See references/create-instance.md §Bootstrap.

Windows Login / Upload (standard paths)

Windows has NO working sshpass — password automation must go through paramiko; key automation uses the built-in OpenSSH ssh/scp. The first Connection refused on a fresh instance is usually just sshd not ready (retry with backoff before debugging the SG/EIP); a Permission denied while the server log shows "accepts key" is the local passphrase trap (-N '""' sets a literal "" passphrase). Full standard paths — sshd-ready retry, paramiko login/upload, and the cloud-init public-key injection path (KooCLI has no ImportKeypair): references/windows-ssh.md.

Deleting Instances

  • Show the user the exact command and get explicit approval before running
  • By default, --delete_publicip and --delete_volume are false — public IP and system disk survive deletion
  • Set both to true to avoid orphaned resources and unexpected billing
  • Data disks ARE deleted by default (unlike system disk)

Troubleshooting

ErrorRoot Cause -> Fix
Cannot SSHSG missing port 22 or no EIP -> Add ingress rule / Bind EIP
Flavor unavailableRegion limitation -> ListFlavors in target region
Insufficient resourcesStock depleted -> Change flavor or AZ
AuthFailureExpired AK/SK -> re-run npx huaweicloud-devkit auth init
APIGW.0802 / region permissionIAM user has no access to this region -> IAM console → User → Permissions → add region, or switch to another region
Cannot SSH (port 22 open)SCP policy may be blocking SSH. Check SYS.0403 errors in command output -> Use cloud-init/user_data for initial setup instead. See references/create-instance.md §Bootstrap

Security Considerations

  • MUST use security groups, not iptables
  • MUST store SSH keys in DEW, never in user-data
  • SHOULD enable CTS audit logging
  • MUST NOT open 0.0.0.0/0 for SSH

MCP Tools

Prefer these tools over raw hcloud CLI — they enforce safety policies:

  • huaweicloud_list_operations service=ECS
  • huaweicloud_run_readonly_command for discovery (auto-redacts output)
  • huaweicloud_plan_cli_command for command planning (returns command text + safety classification)
  • huaweicloud_run_approved_command for writes (requires exact command approval)
  • huaweicloud_check_cli to verify hcloud is available

approvedCommand trap: huaweicloud_run_approved_command validates that approvedCommand matches the planned command EXACTLY (including <redacted> placeholders). Always use the command field value returned by huaweicloud_plan_cli_command verbatim — never reconstruct or retype it. Mismatches cause rejection with "approvedCommand must exactly match the planned hcloud command."

Without MCP (Fallback)

If MCP tools are NOT available (new install, session not restarted):

  • Raw hcloud commands WILL appear in shell history — passwords and secrets are at risk
  • Always use key_name instead of adminPass
  • Verify safety manually: no secret value reads, no credential file access
  • Restart session as soon as possible to enable safety policies

Without MCP

Fall back to hcloud CLI. State: "MCP unavailable, using local hcloud CLI."

Flexus (Lightweight ECS)

Flexus is the lightweight ECS family. Two variants:

VariantAPICLIBilling
Flexus LHCSS (hcss:lightInstances)❌ No hcloud — Python SDK onlyPrepaid only
Flexus XStandard ECS API✅ hcloud ECS with x1.* flavorsOn-demand & prepaid

For Flexus X, use standard ECS CreateServers flow with x1.* flavors. For Flexus L, manual console provisioning is recommended — no KooCLI path exists.

References

  • ECS Docs: https://support.huaweicloud.com/ecs/
  • Flavor specs: references/flavors.md
  • Create instance: references/create-instance.md
  • Windows SSH login/upload: references/windows-ssh.md
  • HC活动 ECS+Nginx部署: references/hc-activity.md

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Huawei Ecs」では何ができますか?

Use when creating, configuring, managing, or troubleshooting ECS instances on Huawei Cloud. Covers instance creation (hcloud ECS CreateServers), flavor selection, image management, security groups, EIP binding, disk attachment, auto-scaling (AS), and troubleshooting. Triggers on: ECS, instance, flavor, image, security group, EIP, EVS, auto-scaling. NOT for: CCE container workloads (use huawei-cce), BMS bare metal servers. HC活动场景(ECS+Nginx部署后端服务)触发词: HC活动, 华为HC, HC大会, 活动部署, HC ECS, 活动流程, 部署后端, Nginx部署, Nodejs部署, 上线后端服务, 部署个人网站, /hc-activity/.

TypingMindでHuawei Ecsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Huawei Ecsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにHuawei Ecsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/huaweicloud/huaweicloud-devkit/tree/main/plugins/huaweicloud-core/skills/huawei-ecsを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Huawei Ecsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Huawei Ecsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもHuawei Ecsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Huawei Ecs」は無料ですか?

はい。huaweicloudがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇