Alibabacloud Ecs Install Extension
by @sdk-team
Alibaba Cloud ECS extension installation skill. Supports querying available extension lists, checking if a specific extension is available, and one-click ins...
> Pre-check: Aliyun CLI >= 3.3.1 required
> Run aliyun version to verify >= 3.3.1. If not installed or version too low,
> see references/cli-installation-guide.md for installation instructions.
> Then [MUST] run aliyun configure set --auto-plugin-install true to enable automatic plugin installation.
>
> Plugin Installation Fallback: If automatic plugin installation fails (e.g., network errors like connect: bad file descriptor), manually install the OOS plugin:
>
> # Check if oos plugin is installed
> aliyun plugin list
> # If not listed, download and install manually:
> # 1. Visit https://github.com/aliyun/alibaba-cloud-cli/releases to find the oos plugin package
> # 2. Download the .tar.gz for your platform
> # 3. Install: aliyun plugin install --file
> # 4. Verify: aliyun plugin list (should show oos plugin)
> > Pre-check: Alibaba Cloud Credentials Required
>
> Security Rules:
> - NEVER read, echo, or print AK/SK values (e.g., echo $ALIBABA_CLOUD_ACCESS_KEY_ID is FORBIDDEN)
> - NEVER ask the user to input AK/SK directly in the conversation or command line
> - NEVER use aliyun configure set with literal credential values
> - ONLY use aliyun configure list to check credential status
>
>
> aliyun configure list
>
> Check the output for a valid profile (AK, STS, or OAuth identity).
>
> If no valid profile exists, STOP here.
> 1. Obtain credentials from Alibaba Cloud Console
> 2. Configure credentials outside of this session (via aliyun configure in terminal or environment variables in shell profile)
> 3. Return and re-run after aliyun configure list shows a valid profile> Endpoint Note (Plugin Mode): In plugin mode, the --endpoint flag is typically not needed. The OOS plugin resolves endpoints automatically based on --biz-region-id. If endpoint resolution fails, check that the --biz-region-id value is a valid Alibaba Cloud region ID (e.g., cn-hangzhou).
1. Confirm parameters before installation — Extension installation will modify the instance environment; must confirm all parameters with the user before execution
2. Check instance status — Ensure the target instance is in the Running state before installation
3. Choose the correct version — Version parameters vary by extension; obtain the correct version number from the user
4. Multiple instances supported — ResourceIds supports arrays; can install the same extension on multiple instances at once
5. Security awareness — Never expose AK/SK in commands or reports
clawhub install alibabacloud-ecs-install-extension