huawei-cloud-iac-reverse

Installation
SKILL.md

Huawei Cloud IaC Reverse Engineering Skill

Overview

Given a Huawei Cloud account with existing resources, this skill:

  1. Discovers all resources via RMS (Resource Management Service / 配置审计) API
  2. Analyzes resources in batches by service layer (network → storage → compute → database → auxiliary)
  3. Synthesizes Terraform HCL configurations from the analyzed topology
  4. Validates with terraform fmt → validate → plan
  5. Compares the generated code against the original inventory to identify gaps

Prerequisites

  • hcloud CLI (KooCLI) installed and configured with AK/SK
  • Terraform >= 1.90.0 installed (see references/cli-installation-guide.md)
  • Huawei Cloud provider for Terraform (auto-downloaded via Huawei Cloud mirror)
  • Environment variables: HUAWEI_ACCESS_KEY, HUAWEI_SECRET_KEY (unset HUAWEI_SECURITY_TOKEN if switching accounts)

Workflow

Installs
4
GitHub Stars
53
First Seen
Sep 30, 2026