Coding

huawei-cloud-terraform-installer

Try it

Installs Terraform CLI cross-platform with Huawei Cloud mirror support. Use this skill whenever the user mentions installing Terraform, setting up Terraform...

What it does

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.

The skill document

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

PlatformMethodNotes
LinuxBinaryDirect binary download
WindowsBinaryDirect 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

# 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

ResourceSourceNotes
Terraform binaryHashiCorp ReleasesOfficial source
ProviderHuawei 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

Related skills

Generate Huawei Cloud Terraform configurations and execute deployment with user-guided approval. Use this skill when users want to create Huawei Cloud infras...

1 installs

Queries Huawei Cloud billing and fee details only when Terraform needs a billing or pricing inquiry. Covers balances, bills, coupons, cash coupons, stored-value cards, orders, refunds, costs, free resources, resource usage, enterprise accounts, and on-demand/period/ELB/NAT/DCS pricing. No write operations. Use this skill only when Terraform requires billing details, invoice/bill summaries, coupon or balance status, refund/order billing status, or pricing inquiry. Triggers: Terraform 账单查询, Terraform 费用查询, Terraform 价格询价, Terraform 询价, Terraform billing query, Terraform pricing inquiry, Terraform price quote, Terraform bill summary.

by huaweiclouddev-dev

Provides guidance for Huawei Cloud KooCLI command-line tool operations. Covers KooCLI installation, IAM authentication configuration, access credential confi...

by huaweicloud-skills-team1 installs

Terraform (hashicorp.com). Use this skill for ANY Terraform request — searching and reading data. Whenever a task involves Terraform, use this skill instead...

1 installs

"Deploy Dify - an open-source LLM app development platform on Huawei Cloud with ECS via Terraform. Use when the user wants to deploy Dify (or an LLM application development platform) on Huawei Cloud and directly implement it with a Terraform/SAC template. Trigger: Dify 一键部署, Dify development, Agentic workflow, build AI App"

Generate Huawei Cloud pre-order price estimates, safely provision allowlisted resources via hcloud, and guide unsubscribe requests to the console only. Use this skill whenever the user mentions 华为云/Huawei Cloud/hcloud with 报价/询价/价格/quote/pricing/budget, 开通/购买/创建/provision/create, or 退订/unsubscribe. Create requires runtime help, --dryrun, fee review, and confirmation. Never run or emit unsubscribe CLI/API. Refuse other clouds, credentials, payment/renewal/delete, and non-allowlisted writes.

4 installs

More from huaweicloud-skills-team

Browse all skills

Manage Huawei Ascend NPUs with natural language commands that translate to npu-smi, locally or over SSH.

by huaweicloud-skills-team7 installs

Deploy and test LLM, VL, Embedding, and Rerank models on Huawei Cloud Ascend 910B DevServer with single- or dual-node topologies.

by huaweicloud-skills-team7 installs

Read-only queries against Huawei Cloud resources for inventory, verification, and parameter discovery.

by huaweicloud-skills-team6 installs

Query Huawei Cloud IAM resources (users, groups, policies, agencies, AK/SK, MFA, security settings) read-only via local Python SDK.

by huaweicloud-skills-team6 installs