Command Palette

Search for a command to run...

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

Alibabacloud Network Eip Associate

БесплатноБез исполняемых скриптовНе проверен

Allocate Elastic IP Address (EIP) and bind to existing Alibaba Cloud resources. Supports ECS instances, ENI, CLB, NAT Gateway, HAVIP, and IP addresses. Focus…

sdk-teamот sdk-team969 установок в других каталогах

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

Allocate and Bind EIP to Existing Cloud Resources

Scenario Description

Allocate Elastic IP Address (EIP) and bind it to existing Alibaba Cloud resources for public internet access. This skill focuses on EIP product capabilities only. Supported Resource Types:

  • EcsInstance: ECS instance (requires instance ID)
  • NetworkInterface: Elastic Network Interface/ENI (requires ENI ID + private IP address)
  • SlbInstance: Classic Load Balancer/CLB (requires CLB instance ID)
  • Nat: NAT Gateway (requires NAT Gateway ID)
  • HaVip: High-Availability Virtual IP (requires HaVip ID)
  • IpAddress: Direct IP address binding (requires VPC ID + IP address) Key Principles:
  1. ✅ Only operate on user-provided resource IDs - never query or auto-select resources
  2. ✅ Fail fast - stop immediately on unrecoverable errors
  3. ✅ No resource creation - only bind to existing resources (no new ECS/NAT/VPC creation)
  4. ✅ User confirmation - ask for key EIP parameters before allocation
  5. ✅ Cleanup on failure - release newly allocated EIPs if binding fails

Pre-checks

1. Aliyun CLI version verification (>= 3.3.3)

Pre-check: Aliyun CLI >= 3.3.3 required

Run aliyun version to verify >= 3.3.3. If not installed or version too low, run curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash to update, or see references/cli-installation-guide.md for installation instructions.

Pre-check: Aliyun CLI plugin update required

[MUST] run aliyun configure set --auto-plugin-install true to enable automatic plugin installation. [MUST] run aliyun plugin update to ensure that any existing plugins are always up-to-date.

aliyun configure set --auto-plugin-install true
CLI_VERSION=$(aliyun version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
[ "$(printf '%s\n' "3.3.3" "$CLI_VERSION" | sort -V | head -n1)" != "3.3.3" ] && echo "❌ CLI < 3.3.3" && exit 1
aliyun plugin update

2. Authentication credential verification

aliyun configure list  # Check valid profile (AK/STS/OAuth). NEVER echo AK/SK.

Workflow Overview

Key rules for ALL commands below: [MUST] CLI User-Agent — Every aliyun CLI command invocation must include: --user-agent AlibabaCloud-Agent-Skills/alibabacloud-network-eip-associate

  • Every aliyun product command MUST include --user-agent AlibabaCloud-Agent-Skills/alibabacloud-network-eip-associate (NOT on configure commands)
  • Use plugin mode (kebab-case): aliyun vpc allocate-eip-address, NOT AllocateEipAddress
  • VPC commands require --biz-region-id <Region>
  • CRITICAL: --biz-region-id only sets the RegionId parameter in the API request body; it does NOT control which API endpoint the CLI connects to. The API endpoint is determined by the CLI profile's configured region. Before running any VPC command, you MUST set the CLI profile region to match the target region:
    aliyun configure set --region {REGION}
    
  • jq is NOT available — use grep to parse JSON output Global Variables to Track:
  • CREATED_EIPS: Array of EIP AllocationIds created in this session (for user-controlled cleanup on failure)
  • REGION: Target region (MUST be explicitly provided by user, no default)
  • INSTANCE_TYPE: Target resource type (EcsInstance/NetworkInterface/SlbInstance/Nat/HaVip/IpAddress)
  • USE_EXISTING_EIP: Boolean flag (true = use existing EIP, false = create new EIP)
  • ALLOCATION_ID: EIP instance ID (from existing EIP or newly allocated)

Workflow Phases:

  1. Phase 1: Extract user input, validate resource, choose existing/new EIP
    • Steps 1.1-1.2: Extract parameters, set CLI region
    • Step 1.3: Check if resource already has EIP bound (DescribeEipAddresses)
    • Step 1.3.5: Check if ECS has PIP/Public IP (ECS only, DescribeInstanceAttribute)
    • Step 1.4: User chooses existing EIP or new EIP
    • Step 1.5: Use existing EIP (query available EIPs, let user select)
    • Step 1.6: Create new EIP (confirm parameters)
    • Step 1.7: Pre-allocation validation (only for new EIP)
  2. Phase 2: Allocate EIP (only if USE_EXISTING_EIP = false)
  3. Phase 3: Bind EIP to target resource (actual execution)
  4. Phase 4: Verify binding
  5. Phase 5: Cleanup on failure (ask user to keep or release newly created EIP)

Phase 1: Extract User Input and Validate Resource

Step 1.1: Extract required parameters from user message

Required from user:

  • Region: Target region (e.g., cn-beijing, cn-hangzhou) - MUST be explicitly provided, no default
  • Resource Type: One of: ECS / ENI / CLB / NAT / HAVIP / IP
  • Resource ID: Exact instance ID, ENI ID, NAT ID, etc.
  • Additional parameters (instance-type specific):
    • If NetworkInterface: Must have PrivateIpAddress (private IP to bind)
    • If IpAddress: Must have VpcId (VPC ID where IP address resides) If ANY required parameter is missing, STOP and ask user: `❌ Missing: Region[REQUIRED] | Resource
Полный SKILL.md на ClawHub

Установить Alibabacloud Network Eip Associate в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл Alibabacloud Network Eip Associate?

Allocate Elastic IP Address (EIP) and bind to existing Alibaba Cloud resources. Supports ECS instances, ENI, CLB, NAT Gateway, HAVIP, and IP addresses. Focus: EIP product capabilities only - allocation, binding, verification, and cleanup. Triggers: "EIP bind", "elastic IP associate", "allocate EIP", "bind EIP to ECS/NAT/CLB"

Как установить скилл Alibabacloud Network Eip Associate?

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

Скилл Alibabacloud Network Eip Associate запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить Alibabacloud Network Eip Associate с