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-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:
- ✅ Only operate on user-provided resource IDs - never query or auto-select resources
- ✅ Fail fast - stop immediately on unrecoverable errors
- ✅ No resource creation - only bind to existing resources (no new ECS/NAT/VPC creation)
- ✅ User confirmation - ask for key EIP parameters before allocation
- ✅ 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 versionto verify >= 3.3.3. If not installed or version too low, runcurl -fsSL https://aliyuncli.alicdn.com/setup.sh | bashto update, or seereferences/cli-installation-guide.mdfor installation instructions.
Pre-check: Aliyun CLI plugin update required
[MUST] run
aliyun configure set --auto-plugin-install trueto enable automatic plugin installation. [MUST] runaliyun plugin updateto 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
aliyunproduct command MUST include--user-agent AlibabaCloud-Agent-Skills/alibabacloud-network-eip-associate(NOT onconfigurecommands) - Use plugin mode (kebab-case):
aliyun vpc allocate-eip-address, NOTAllocateEipAddress - VPC commands require
--biz-region-id <Region> - CRITICAL:
--biz-region-idonly 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} jqis NOT available — usegrepto 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:
- 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)
- Phase 2: Allocate EIP (only if
USE_EXISTING_EIP = false) - Phase 3: Bind EIP to target resource (actual execution)
- Phase 4: Verify binding
- 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 havePrivateIpAddress(private IP to bind) - If
IpAddress: Must haveVpcId(VPC ID where IP address resides) If ANY required parameter is missing, STOP and ask user: `❌ Missing: Region[REQUIRED] | Resource
- If
Установить 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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic