ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 2/5

tc_migrate

腾讯云跨账号资源迁移工具。将源账号(账号A)的 VPC、CLB、NAT、CVM、安全组等资源迁移到目标账号(账号B),通过 CCN 云联网实现跨账号网络互通。支持自动扫描、配置生成、Terraform 部署。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/awaili/tc-migrate
Or

What This Skill Does

The tc_migrate skill is a robust automation toolkit designed for Tencent Cloud users to seamlessly transfer complex infrastructure across different cloud accounts. It handles the migration of core networking and compute resources, including VPCs, Subnets, Security Groups, CLBs, NAT Gateways, and CVM instances. By orchestrating Terraform under the hood, the skill ensures that configurations are reproducible and stable. A standout feature is the automated setup of CCN (Cloud Connect Network) to maintain cross-account connectivity, solving the inherent challenge of resource isolation in multi-account environments. The workflow is streamlined into four logical steps—Configuration, Scanning, Generation, and Deployment—making it accessible for DevOps engineers and system administrators.

Installation

To integrate this skill into your environment, run the following command via the ClawHub CLI: clawhub install openclaw/skills/skills/awaili/tc-migrate

Ensure that your system satisfies the following dependencies before execution:

  1. Python 3.x environment (install dependencies via pip install -r {baseDir}/requirements.txt).
  2. Terraform version 1.0 or higher. You must configure the HashiCorp repository for your package manager (e.g., yum) to ensure the correct version is installed and verified via terraform --version.
  3. A properly initialized account.yaml file containing the Tencent Cloud credentials for both the source and target accounts. Always ensure this file is protected and excluded from version control systems.

Use Cases

  • Consolidation of Cloud Accounts: Merging resources from legacy or experimental accounts into a production-grade master account.
  • Disaster Recovery / Environment Cloning: Replicating a production environment from one region or account to another to facilitate high-availability setups.
  • Infrastructure Refactoring: Transitioning services to new VPC topologies without manually recreating every security rule or network interface.
  • Automated Infrastructure as Code (IaC): Converting existing manual deployments into managed Terraform state files for easier maintenance and auditing.

Example Prompts

  1. "OpenClaw, please start the migration process from the source account to the target account by initializing the configuration for my project."
  2. "Perform a scan of the existing VPC and CVM resources in my source account and generate the Terraform variables needed for migration."
  3. "Execute the migration process now using the current configuration files, and skip the manual confirmation prompts."

Tips & Limitations

  • Security First: Never expose or paste your secret_id or secret_key in the AI chat history. The tool expects these values to remain local to your account.yaml file.
  • Plan Before Apply: Always review the output of the plan phase. Even though the tool is automated, cloud migrations can involve irreversible resource deletions or network configuration changes.
  • State Management: The terraform.tfstate file is the source of truth for your migrated infrastructure. Back this file up securely, as losing it will make it difficult to manage or destroy resources via the tool in the future.
  • Scope: This tool focuses on networking and CVMs; complex application-level data migration (like databases or object storage) should be handled using dedicated services like DTS or COS migration tools.

Metadata

Author@awaili
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-awaili-tc-migrate": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#tencent-cloud#migration#devops#terraform#networking
Safety Score: 2/5

Flags: network-access, file-write, file-read, external-api, code-execution