Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

huawei-cloud-eip-cost-optimizer

БесплатноЗапускает вложенные скриптыНе проверен

Huawei Cloud EIP (Elastic IP) cost optimization skill using hcloud CLI (KooCLI). 1. List and query EIPs across regions with detailed status 2. Identify…

huaweicloudskillот huaweicloudskill374 установки в других каталогах

Об этом скилле

Huawei Cloud EIP Cost Optimizer

Overview

This skill provides batch management and cost optimization capabilities for Huawei Cloud Elastic Public IPs (EIPs).

Architecture: Shell + hcloud CLI (KooCLI) → EIP Service API → VPC/Bandwidth resources

Related Skills: For broader cost optimization across all resource types (ECS, EVS, OBS, etc.), see the archived huaweicloud-cost-optimizer skill. This skill focuses exclusively on EIP optimization with deeper functionality and 100% hcloud CLI compliance.

  • Periodic cleanup of idle EIPs to reduce holding costs
  • Cost analysis and optimization recommendations
  • Multi-region unified management
  • Automated monitoring and alerting for idle resources
  • Operation audit logging for compliance

Typical Use Cases:

  • "Help me identify idle EIPs and generate an optimization report"
  • "Generate an EIP cost analysis report to identify high-cost resources"
  • "Set up idle EIP monitoring with automatic alerts via webhook or email"
  • "View EIP distribution and status summary across all regions"
  • "Show audit logs for EIP operations in the last 30 days"
  • "List all EIPs in cn-north-4 with detailed information"

Prerequisites

1. CLI Environment Requirements (MANDATORY)

  • hcloud CLI (KooCLI) v7.0+ — Huawei Cloud command-line tool
  • jq — JSON processor for parsing API responses
  • bc — Arbitrary precision calculator for cost estimation
  • curl — HTTP client for webhook notifications

Install hcloud CLI:

# Linux/macOS one-click install
curl -sSL https://hwcloudcli.obs.cn-north-1.myhuaweicloud.com/cli/latest/hcloud_install.sh | bash

# Verify installation
hcloud --version

Install jq, bc, curl:

# Ubuntu/Debian
sudo apt install -y jq bc curl

# CentOS/RHEL
sudo yum install -y jq bc curl

# macOS
brew install jq bc curl

Available Shell Scripts:

  • scripts/config.sh - Shared configuration (credentials, regions, proxy)
  • scripts/list_eips.sh - List all EIPs in a region (supports filtering and summary)
  • scripts/analyze_idle_eips.sh - Analyze idle EIPs and generate optimization reports (read-only)
  • scripts/eip_cost_report.sh - Generate EIP cost analysis reports (text/HTML/JSON)
  • scripts/monitor_idle_eips.sh - Monitor idle EIPs with webhook/email alerts and cron support
  • scripts/check_env.sh - Environment check and validation (hcloud CLI + tools + API)
  • scripts/eip_audit_log.sh - Operation audit logging (JSONL + CSV/JSON export)

Note: All scripts are READ-ONLY. This skill does NOT perform bandwidth adjustment, tag management, or EIP release/deletion.

2. Authentication Configuration

This skill supports one authentication path via environment variables:

Environment Variables

export HW_ACCESS_KEY=<your-ak>
export HW_SECRET_KEY=<your-sk>
export HW_REGION_NAME=cn-north-4

Note: If you have already configured hcloud configure interactively (entering credentials via prompts, not command-line arguments), the skill will also detect and use those credentials.

Environment Variables:

Variable Required Description
HW_ACCESS_KEY Optional Huawei Cloud Access Key ID (required only if hcloud configure not set)
HW_SECRET_KEY Optional Huawei Cloud Secret Access Key (required only if hcloud configure not set)
HW_REGION_NAME Optional Default region (default: cn-north-4)
HW_SECURITY_TOKEN Optional Security token for temporary credentials

Security Notes:

  • Never commit credentials to version control
  • Never expose AK/SK values in code, conversation, or commands
  • Never pass AK/SK values as command-line arguments (exposes credentials in shell history and ps aux)
  • Use IAM users with minimal required permissions
  • Enable MFA for sensitive operations
  • Rotate AK/SK regularly
  • Use ./scripts/check_env.sh to validate credentials before running scripts

3. Quick Start

# Step 1: Configure authentication via environment variables
export HW_ACCESS_KEY=<your-ak>
export HW_SECRET_KEY=<your-sk>
export HW_REGION_NAME=cn-north-4

# Step 2: Run environment check
bash scripts/check_env.sh

# Step 3: Run scripts
bash scripts/list_eips.sh --region cn-north-4
bash scripts/analyze_idle_eips.sh --idle-days 7
bash scripts/eip_cost_report.sh --format html

4. IAM Permission Requirements

Note: This skill is READ-ONLY for EIP resources. It does NOT perform any write operations.

API Action Permission Purpose
vpc:publicIps:list List EIPs Query all EIPs and their status
vpc:publicIps:get Get EIP details View individual EIP information

Workflow

Main Steps

  1. Environment Check → Verify hcloud CLI, jq, credentials
  2. EIP Query → List EIPs across regions via hcloud CL
Полный SKILL.md на ClawHub

Установить huawei-cloud-eip-cost-optimizer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл huawei-cloud-eip-cost-optimizer?

Huawei Cloud EIP (Elastic IP) cost optimization skill using hcloud CLI (KooCLI). 1. List and query EIPs across regions with detailed status 2. Identify idle/unbound EIPs and generate cost optimization reports 3. Set up idle EIP monitoring with webhook/email alerts 4. Generate HTML/JSON cost analysis reports 5. Maintain operation audit logs for compliance **Read-only analysis only - NO bandwidth adjustment, tag management, or EIP release/deletion**. Triggers include: "EIP cost optimization", "idle EIP analysis", "EIP audit", "cost report", "EIP status query", "EIP list", "EIP monitoring", "EIP alert", "cost analysis", "idle monitoring", "operation audit", "EIP 成本优化", "闲置 EIP 分析", "EIP 审计", "成本报告", "EIP 状态查询", "EIP 查询", "EIP 列表", "EIP 监控", "EIP 告警", "成本分析", "闲置监控", "操作审计"

Как установить скилл huawei-cloud-eip-cost-optimizer?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл huawei-cloud-eip-cost-optimizer запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить huawei-cloud-eip-cost-optimizer с