首页/云计算与基础设施/huawei-cloud-terraform-installer
H

huawei-cloud-terraform-installer

by @huaweicloudv
4.6(120)

此技能可跨平台自动安装 Terraform CLI,默认使用华为云镜像以避免 GitHub 网络问题,支持版本指定、初始化、测试、卸载等操作。适用于需要快速搭建 Terraform 环境的开发者和运维团队,简化安装流程并提高可靠性。

terraformhuawei-cloudinstallerclidevopsGitHub
安装方式
npx skills add https://github.com/huaweicloud/huaweicloud-skills --skill huawei-cloud-terraform-installer
compare_arrows

Before / After 效果对比

1 组
使用前

在没有此技能之前,用户需要手动下载 Terraform 二进制文件、配置环境变量,并可能因 GitHub 网络问题反复重试。整个过程耗时且容易出错,尤其对于不熟悉命令行操作的用户。

使用后

使用此技能后,只需运行一条命令即可自动完成 Terraform 的安装和初始化,默认采用华为云镜像,有效避免网络延迟和超时问题,几分钟内即可开始使用。

SKILL.md

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

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量17.0K
评分4.6 / 5.0
版本
更新日期2026年10月23日
对比案例1 组

用户评分

4.6(120)
5
37%
4
43%
3
13%
2
5%
1
2%

为此 Skill 评分

0.0

兼容平台

🤖claude-code

时间线

创建2026年8月23日
最后更新2026年10月23日
🎁 Agent 知识卡片
调研问卷