ホーム/クラウド&インフラ/huawei-cloud-terraform-installer
H

huawei-cloud-terraform-installer

by @huaweicloudv
4.6(120)

このスキルは、Terraform CLI をクロスプラットフォームで自動インストールし、デフォルトで Huawei Cloud ミラーを使用して 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 のネットワーク問題で再試行する必要がありました。時間がかかり、エラーが発生しやすく、特にコマンドライン操作に不慣れなユーザーにとっては困難でした。

使用後

このスキルを使用すると、1つのコマンドで Terraform のインストールと初期化が自動的に完了し、デフォルトで Huawei Cloud ミラーを使用するため、ネットワーク遅延やタイムアウトを回避でき、数分で使用を開始できます。

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 知識カード
アンケート