huawei-cloud-terraform-installer
About huawei-cloud-terraform-installer
A skill for installing Terraform on Linux and Windows, using the Huawei Cloud mirror for providers by default and HashiCorp Releases for the Terraform binary. It supports version selection, initialization, testing, status checks, and removal; macOS is not supported.
Key features
- 01Downloads Terraform binaries from the official source
- 02Uses the Huawei Cloud provider mirror by default
- 03Supports selecting a Terraform version
- 04Offers init, test, check, and uninstall operations
Use cases
- 01Installing Terraform on Linux or Windows
- 02Getting providers through the Huawei Cloud mirror
- 03Checking or removing a Terraform installation
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ huaweicloud/ huaweicloud-skills --skill huawei-cloud-terraform-installerAfter installing, type/huawei-cloud-terraform-installerin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/test-scenarios.mdverification-method.mdverification-result.mdscripts/install_terraform.pyDetails
From the project READMEHuawei Cloud Terraform Installer
Cross-platform Terraform CLI installation with Huawei Cloud mirror by default (avoids GitHub network issues).
Prerequisites
- Python 3.6+ (required for installation script)
- Network access to:
releases.hashicorp.com(Terraform binary)mirrors.huaweicloud.com(HuaweiCloud Provider)
Platform Support
| Platform | Method | Notes |
|---|---|---|
| Linux | Binary | Direct binary download |
| Windows | Binary | Direct download |
Why use binary download only?
- Simpler and more reliable across all platforms
- No dependency on package manager availability
- Consistent behavior for troubleshooting
Note: macOS is not currently supported.
Windows Special Notes
Provider installation method:
- Use
filesystem_mirror(local file mirror) - Download zip from Huawei Cloud mirror, extract to local
- Configure
terraform.rcto point to local directory
Unsupported methods:
- ❌
direct(Registry → GitHub): GitHub timeout - ❌
network_mirror: Huawei Cloud mirror directory structure incompatible
Quick Start
Basic Installation
# Auto-install (default to Huawei Cloud mirror)
python scripts/install_terraform.py
# Install + Initialize
python scripts/install_terraform.py --init
# Install + Test
python scripts/install_terraform.py --test
Specify Version
# Install specific version
python scripts/install_terraform.py --version 1.15.4
Other Operations
# Check status only
python scripts/install_terraform.py --check
# Uninstall
python scripts/install_terraform.py --uninstall
Mirror Strategy
| Resource | Source | Notes |
|---|---|---|
| Terraform binary | HashiCorp Releases | Official source |
| Provider | Huawei Cloud Mirror (default) | Avoid GitHub network issues |
Huawei Cloud Mirror: https://mirrors.huaweicloud.com/terraform/
Troubleshooting
Issue 1: Windows PATH Not Effective
Solution: Reopen terminal (PowerShell/CMD)
Issue 2: Permission Denied
[ERROR] Permission denied, please run with administrator privileges
Solution:
- Windows: Right-click → Run as administrator
- Linux:
sudo python3 install_terraform.py
Issue 3: Network Timeout
Solution: Default uses Huawei Cloud mirror, should not encounter this issue