huawei-cloud-iac-reverse
Installation
SKILL.md
Huawei Cloud IaC Reverse Engineering Skill
Overview
Given a Huawei Cloud account with existing resources, this skill:
- Discovers all resources via RMS (Resource Management Service / 配置审计) API
- Analyzes resources in batches by service layer (network → storage → compute → database → auxiliary)
- Synthesizes Terraform HCL configurations from the analyzed topology
- Validates with
terraform fmt→validate→plan - Compares the generated code against the original inventory to identify gaps
Prerequisites
hcloudCLI (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(unsetHUAWEI_SECURITY_TOKENif switching accounts)