Skip to main content
skill CX Codex

huawei-cloud-terraform-installer — Claude Code skill: Terraform

This skill installs Terraform CLI on Linux and Windows, with Huawei Cloud mirror support for the provider. Use it when an IaC task finds Terraform missing.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-terraform-installer -a claude-code
Open on GitHub

What huawei-cloud-terraform-installer does

The skill installs Terraform CLI through binary downloads and uses the Huawei Cloud mirror for the provider by default. Its script can install Terraform, run --init or --test, check the current state with --check, remove the installation with --uninstall, and install a selected version with --version.

It requires Python 3.6+ and network access to releases.hashicorp.com and mirrors.huaweicloud.com. On Windows, the provider is downloaded as a zip, extracted into a local mirror, and referenced through terraform.rc. macOS is not supported, so check the operating system before running it.

What it helps with

  • install Terraform CLI on Linux
  • set up Terraform on Windows without a package manager
  • route provider downloads through the Huawei Cloud mirror
  • initialize Terraform after installation
  • check or remove the Terraform installation

Example prompts for the agent

  • Install Terraform and use the Huawei Cloud mirror by default.
  • Install Terraform and then run python scripts/install_terraform.py --init.
  • Check the Terraform installation with python scripts/install_terraform.py --check.

How to install huawei-cloud-terraform-installer

1Skills CLI (Vercel)

npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-terraform-installer -a claude-code

2Manually: put the files in place

~/.claude/skills/huawei-cloud-terraform-installer/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/huawei-cloud-terraform-installer/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about huawei-cloud-terraform-installer

How do I install huawei-cloud-terraform-installer in Claude Code?

Run npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-terraform-installer -a claude-code, then run the same command again. Open ~/.claude/skills/huawei-cloud-terraform-installer/SKILL.md afterward.

What does huawei-cloud-terraform-installer do?

The skill installs Terraform CLI through binary downloads on Linux and Windows. It uses the Huawei Cloud mirror for the provider and can run initialization, testing, status checks, and uninstallation.

What does the skill require?

It requires Python 3.6+ and network access to releases.hashicorp.com and mirrors.huaweicloud.com. macOS is not supported.

Source text

SKILL.md · MIT
---
name: huawei-cloud-terraform-installer
description: >-
  Installs Terraform CLI cross-platform with Huawei Cloud mirror support. Use
  this skill whenever the user mentions installing Terraform, setting up
  Terraform environment, or when IaC tasks detect missing Terraform. Trigger:
  install terraform, setup terraform, terraform environment, huaweicloud
  provider.

compatibility:
  network: true
  allowed_hosts:
    - releases.hashicorp.com
    - mirrors.huaweicloud.com
    - api.github.com
---

# Huawei 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.rc` to point to local directory

**Unsupported methods:**

- ❌ `direct` (Registry → GitHub): GitHub timeout
- ❌ `network_mirror`: Huawei Cloud mirror directory structure incompatible

## Quick Start

### Basic Installation

```bash
# 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

```bash
# Install specific version
python scripts/install_terraform.py --version 1.15.4
```

### Other Operations

```bash
# 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

```text
[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

© huaweicloud · MIT · huaweicloud/huaweicloud-skills

Similar skills

Everything for DevOps and infrastructure →

From the same set23

huawei-cloud-find-skills Discovers, searches, and installs specialized Huawei Cloud skills directly inside AI coding agents. CX Codex +1 17,200installs huawei-cloud-billing-scout Audits Huawei Cloud BSS spend, balances, and charges in read-only mode via hcloud. It delivers concise billing briefings without making payments or modifying resources. CX Codex +1 17,100installs huawei-cloud-network-query Read-only queries for Huawei Cloud network resources like VPC, ELB, NAT, and DNS using local Python scripts. Built to inspect topology and security settings without cloud mutations. CX Codex +1 17,000installs huawei-cloud-terraform-generator Turns an infrastructure goal into a Huawei Cloud Terraform configuration, verifies resources against the target region, and deploys after your approval. CX Codex +1 17,000installs huawei-cloud-obs-upload Uploads files and directories to Huawei Cloud OBS buckets, lists buckets with capacity and object count, and schedules recurring uploads through crontab. CX Codex +1 17,000installs huawei-cloud-computing-query Queries read-only Huawei Cloud compute resources across ECS, BMS, IMS, and Auto Scaling. Useful for auditing server specs, quotas, and active scaling policies. CX Codex +1 17,000installs huawei-cloud-functiongraph-trigger-create Creates TIMER triggers for Huawei Cloud FunctionGraph functions with Quartz Cron or Rate schedules. Use it to run existing functions on a timer. CX Codex +1 16,900installs huawei-cloud-cci-instance-management Runs the full lifecycle of Huawei Cloud CCI containers from the command line: namespaces, networks, deployments, pods, logs. Useful when you want a serverless container without managing a cluster. CX Codex +1 16,900installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor