huawei-cloud-migration-ecs-across-region

huawei-cloud-migration-ecs-across-region is a skill for Codex from huaweicloud/huaweicloud-skills. It costs 238 tokens per session (3,716 once invoked), scanned A, original, MIT.

A workflow for moving one server from on-premises VMware or another cloud into Huawei Cloud. It uses Terraform and Huawei migration services, with rsync, a file-copy tool, as a fallback when needed.

In plain words
What is it for?
It migrates a single server, including AWS EC2 instances, through precheck, task creation, progress tracking, and result validation. Its rsync path performs full, incremental, and final synchronisation before cutover.
Why use it?
It replaces a manual sequence of prechecks, copying, cutover, and verification with the repository's defined migration process. The fallback helps when the normal migration service cannot handle the source.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit It migrates a single server, including AWS EC2 instances, through precheck, task creation, progress tracking, and result validation. Its rsync path performs full, incremental, and final synchronisation before cutover.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-ecs-across-region
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-migration-ecs-across-region
Clone the repo
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for huawei-cloud-migration-ecs-across-region

README.md
[![agentmods](https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-ecs-across-region/github.svg)](https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-ecs-across-region)
Your own site
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-ecs-across-region"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-ecs-across-region/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for huawei-cloud-migration-ecs-across-region

Your own site · 80×15
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-ecs-across-region"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-ecs-across-region.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 238 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,716 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00238 $0.03716
Opus 5.5 $0.00095 $0.01486
Sonnet 5.5 $0.00048 $0.00743
Haiku 4.5 $0.00024 $0.00372

Measured 24d ago against content hash d9484e89f2b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

huawei-cloud-migration-ecs-across-region scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/aws_to_huawei_direct.py, scripts/aws_to_huawei_rsync.py, scripts/mgc_migrate.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/migrationom/oos/huawei-cloud-migration-ecs-across-region/SKILL.md · 199 lines

How it starts

The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MGC Cross-Region Migration

Overview

This skill runs the single-source Huawei Cloud server migration flow implemented in this repository, from precheck to task startup and result validation. It keeps execution deterministic by following the exact command sequence and error-handling rules already implemented in scripts/mgc_migrate.py.

Architecture: Terraform (main.tf) reads terraform.tfvars, maps the values to runtime environment variables, and invokes scripts/run_migration.sh, which calls python3 scripts/mgc_migrate.py. That script signs and issues HTTPS requests directly against the Huawei Cloud IAM, SMS, ECS, and VPC REST APIs (no KooCLI/hcloud involved) to create a migration project, register a migration task, and poll it to completion. Default policy is SMS first; when precheck/runtime indicates an incompatible source (for example SMS.6504), the script switches to rsync phases (full_sync -> incremental_sync -> cutover_sync).

Applicable scenarios:

  • Migrating a single on-prem VMware VM or another-cloud ECS instance into Huawei Cloud via Terraform + SMS/rsync (scripts/mgc_migrate.py).
  • Migrating an AWS EC2 instance directly into Huawei Cloud via the standalone rsync path (scripts/run_aws_migration.sh + aws_to_huawei_direct.py/aws_to_huawei_rsync.py), when the source is AWS-specific (EC2 PEM-key auth, AWS CLI/API source discovery) rather than going through SMS.
  • Source hosts that SMS cannot handle natively, requiring rsync-based staged migration instead.
  • Post-migration troubleshooting: SSH/TCP-22 unreachable, cloud-init failures, stale SMS tasks/quota errors.
  • Postmortem/experience-capture requests after a migration run.

Example user requests:

  • "Migrate this VMware VM in la-north-2 to la-south-2."
  • "帮我把这台 AWS EC2 实例迁移到华为云。"
  • "terraform apply 报错 SMS.8115,怎么处理?"
  • "SMS 显示迁移成功但是 SSH 连不上目标机器,帮我排查。"
  • "帮我把这次迁移过程的踩坑记录总结一下。"

Prerequisites

  • Terraform >= 1.5.0 on PATH. Verify with terraform version.
  • Python 3.8+ on PATH (verify with python3 --version). scripts/mgc_migrate.py only uses the standard library; the optional VPN-bridge fallback path additionally imports pexpect, install it only if that path is used (pip install pexpect).
  • This skill does not use Huawei Cloud KooCLI (hcloud). All Huawei Cloud API calls are issued as signed HTTPS requests from scripts/mgc_migrate.py; no separate CLI installation is required.
  • Credentials: set access_key / secret_key (and domain_name if needed) in terraform.tfvars. Terraform passes them to the migration script only as local-exec environment variables (HC_AK / HC_SK); never print them, log them, or paste them into chat. See references/iam-policies.md for the required IAM permissions.
  • Permission failure handling (MUST): if any API call fails with a permission/403 error, open references/iam-policies.md, show the user the exact missing permission and the minimal policy JSON, have them grant it in the IAM console, then pause until the user confirms the grant before retrying.

Read the full file on GitHub · 199 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 24d ago First seen · 199 lines · 238 tokens per session scan A d9484e89f2b6

Subscribe to this mod's changes

huawei-cloud-migration-ecs-across-region is a skill published in the GitHub repository huaweicloud/huaweicloud-skills (59 stars, last pushed 4d ago), licensed MIT. It adds 238 tokens to every session and 3,716 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.

Related

huawei-cloud-migration-ecs-across-region compared with skills from other repositories

huawei-cloud-migration-ecs-across-region next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
huawei-cloud-migration-ecs-across-regionhuaweicloud/huaweicloud-skillsSkill594d agoMITA238Codex
huawei-cloud-apig-instance-managementhuaweicloud/huaweicloud-devkitSkill71todayApache-2.0A206Claude Code
huawei-cloud-deployment-task-managementhuaweicloud/huaweicloud-devkitSkill71todayApache-2.0A203Claude Code
infrastructure-as-code-guardianJPeetz/agent-skillsSkill2113d agononeA106Claude Code, Codex
auditing-terraform-infrastructure-for-securityxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A59Claude Code, Codex
implementing-infrastructure-as-code-security-scanningxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A81Claude Code, Codex
huawei-cloud-cts-trace-managementhuaweicloud/huaweicloud-devkitSkill71todayApache-2.0A249Claude Code