Loading...
Loading...
Compare original and translation side by side
aliyunhttps://vision.aliyun.com/facebodyhttps://console.aliyun.com/aliyunhttps://vision.aliyun.com/facebodyhttps://console.aliyun.com/aliyun <product> <command> --help--RegionId--region-id--regiondiagnose_cli_command.pyaliyun <product> <command> --help--RegionId--region-id--regiondiagnose_cli_command.pyPre-check: Aliyun CLI >= 3.3.1 requiredRunto verify >= 3.3.1. If not installed or version too low, see installation guide for instructions.aliyun versionThen run the following command to enable automatic plugin installation and set the agent user-agent:bashaliyun configure set --auto-plugin-install true --user-agent AlibabaCloud-Agent-SkillsThis ensures product-specific CLI plugins are downloaded on first use (no manual install needed), and identifies requests as coming from this skill.
bash {{SKILL_PATH}}/scripts/verify_env.sh预检查:要求Aliyun CLI >= 3.3.1运行验证版本>=3.3.1。如果未安装或版本过低,参考安装指南的说明操作。aliyun version然后运行以下命令启用自动插件安装并设置Agent用户代理:bashaliyun configure set --auto-plugin-install true --user-agent AlibabaCloud-Agent-Skills这样可以确保产品专属的CLI插件在首次使用时自动下载(无需手动安装),并标识请求来自本skill。
bash {{SKILL_PATH}}/scripts/verify_env.shRAG知识库AnalyticDB百炼RAG知识库AnalyticDB百炼references/alicloud-tech-solutions-all.mdTerraform Module 名称analyticdb-ragdeepseek-personal-websitedevelop-your-wechat-mini-program-in-10-minutesreferences/alicloud-tech-solutions-all.mdTerraform Module 名称analyticdb-ragdeepseek-personal-websitedevelop-your-wechat-mini-program-in-10-minutesterraformterraformreferences/tf-plan/tf-solutions.mdreferences/tf-plan/tf-solutions.mdModule 地址: https://registry.terraform.io/modules/alibabacloud-automation/<name>/alicloud/latest
GitHub repo: https://github.com/alibabacloud-automation/terraform-alicloud-<name>
Example: https://raw.githubusercontent.com/alibabacloud-automation/terraform-alicloud-<name>/main/examples/complete/main.tfmain.tfmain.tfexamples/complete/模块地址: https://registry.terraform.io/modules/alibabacloud-automation/<name>/alicloud/latest
GitHub仓库: https://github.com/alibabacloud-automation/terraform-alicloud-<name>
示例: https://raw.githubusercontent.com/alibabacloud-automation/terraform-alicloud-<name>/main/examples/complete/main.tfmain.tfexamples/complete/main.tf以下是基于官方示例的部署参数,请确认或修改:
• Region: cn-hangzhou
• Instance type: ecs.c7.large
• VPC CIDR: 172.16.0.0/12
• Password: (请提供)以下是基于官方示例的部署参数,请确认或修改:
• 地域: cn-hangzhou
• 实例规格: ecs.c7.large
• VPC CIDR: 172.16.0.0/12
• 密码: (请提供)undefinedundefined
Deploy using the remote runtime — see [terraform-online-runtime.md](references/terraform-online-runtime.md) for full usage:
```bash
SKILL_DIR="{{SKILL_PATH}}"
TF="${SKILL_DIR}/scripts/terraform_runtime_online.sh"
STATE_ID=$($TF apply main.tf | grep '^STATE_ID=' | cut -d= -f2)
echo "STATE_ID=$STATE_ID" >> terraform_state_ids.env
使用远程运行时部署——完整用法参考[terraform-online-runtime.md](references/terraform-online-runtime.md):
```bash
SKILL_DIR="{{SKILL_PATH}}"
TF="${SKILL_DIR}/scripts/terraform_runtime_online.sh"
STATE_ID=$($TF apply main.tf | grep '^STATE_ID=' | cut -d= -f2)
echo "STATE_ID=$STATE_ID" >> terraform_state_ids.envpython3 {{SKILL_PATH}}/scripts/lsit_products.py '<keyword>' # Find product code + API version
python3 {{SKILL_PATH}}/scripts/search_apis.py '<what you want to do>' # Natural language → API
python3 {{SKILL_PATH}}/scripts/search_documents.py '<topic>' # Parameter details, valid values, constraints
python3 {{SKILL_PATH}}/scripts/lsit_api_overview.py <Product> <version> # Full API list for a product| Scenario | CLI Command | Notes |
|---|---|---|
| Get Bailian (百炼) API Key | | Avoids console entirely. Almost every AI solution needs this. |
| Run commands on ECS | | Use Cloud Assistant instead of asking the user to SSH in. |
| OSS operations | | Use |
maaspython3 {{SKILL_PATH}}/scripts/lsit_products.py '<keyword>' # 查找产品代码+API版本
python3 {{SKILL_PATH}}/scripts/search_apis.py '<你要执行的操作>' # 自然语言→API
python3 {{SKILL_PATH}}/scripts/search_documents.py '<主题>' # 参数详情、有效值、约束
python3 {{SKILL_PATH}}/scripts/lsit_api_overview.py <产品> <版本> # 某产品的完整API列表| 场景 | CLI命令 | 备注 |
|---|---|---|
| 获取百炼API Key | | 完全无需控制台,几乎所有AI解决方案都需要这个。 |
| 在ECS上运行命令 | | 使用云助手,无需要求用户SSH登录。 |
| OSS操作 | | 使用 |
maasForbidden.RAMaliyun <product> <API><product>:<API>aliyun vpc CreateVpcvpc:CreateVpc所需 RAM 权限:
| 云产品 | 所需权限 (Action) | 对应步骤 | 快捷策略 |
|--------|-------------------|----------|----------|
| VPC | vpc:CreateVpc, vpc:CreateVSwitch, vpc:DescribeVpcs | 步骤 1-2 | AliyunVPCFullAccess |
| ECS | ecs:RunInstances, ecs:DescribeInstances, ecs:RunCommand | 步骤 4-6 | AliyunECSFullAccess |
| EIP | vpc:AllocateEipAddress, vpc:AssociateEipAddress | 步骤 3 | AliyunEIPFullAccess |
提示: 可使用快捷策略快速授权,或按 Action 列配置最小权限自定义策略。
---
执行计划 (共 N 步, M 步 CLI 自动化, K 步需控制台):
步骤 1 — 创建 VPC
aliyun vpc CreateVpc --RegionId cn-hangzhou --CidrBlock 172.16.0.0/12 --VpcName demo-vpc
步骤 2 — 创建交换机 (依赖: 步骤1 VpcId)
aliyun vpc CreateVSwitch --RegionId cn-hangzhou --VpcId <步骤1> --ZoneId cn-hangzhou-h --CidrBlock 172.16.0.0/24
步骤 3 — [控制台] 开通视觉智能 API (无 CLI)
打开: https://vision.aliyun.com/facebody → 点击 "立即开通"Forbidden.RAMaliyun <product> <API><product>:<API>aliyun vpc CreateVpcvpc:CreateVpc所需RAM权限:
| 云产品 | 所需权限 (Action) | 对应步骤 | 快捷策略 |
|--------|-------------------|----------|----------|
| VPC | vpc:CreateVpc, vpc:CreateVSwitch, vpc:DescribeVpcs | 步骤 1-2 | AliyunVPCFullAccess |
| ECS | ecs:RunInstances, ecs:DescribeInstances, ecs:RunCommand | 步骤 4-6 | AliyunECSFullAccess |
| EIP | vpc:AllocateEipAddress, vpc:AssociateEipAddress | 步骤 3 | AliyunEIPFullAccess |
提示: 可使用快捷策略快速授权,或按Action列配置最小权限自定义策略。
---
执行计划 (共N步, M步CLI自动化, K步需控制台):
步骤 1 — 创建VPC
aliyun vpc CreateVpc --RegionId cn-hangzhou --CidrBlock 172.16.0.0/12 --VpcName demo-vpc
步骤 2 — 创建交换机 (依赖: 步骤1 VpcId)
aliyun vpc CreateVSwitch --RegionId cn-hangzhou --VpcId <步骤1> --ZoneId cn-hangzhou-h --CidrBlock 172.16.0.0/24
步骤 3 — [控制台] 开通视觉智能API (无CLI)
打开: https://vision.aliyun.com/facebody → 点击 "立即开通"aliyun <product> <api> --helpaliyun <product> <api> --helppython3 {{SKILL_PATH}}/scripts/diagnose_cli_command.py '<the full command>' '<the error message>'python3 {{SKILL_PATH}}/scripts/diagnose_cli_command.py '<完整命令>' '<错误信息>'| Script | Purpose | Example |
|---|---|---|
| Environment check | |
| Find product code + version | |
| Natural language → API | |
| Doc search for details | |
| Full API list for a product | |
| Diagnose CLI errors | |
| Remote TF execution | See terraform-online-runtime.md |
| 脚本 | 用途 | 示例 |
|---|---|---|
| 环境检查 | |
| 查找产品代码+版本 | |
| 自然语言→API | |
| 文档查询详情 | |
| 某产品的完整API列表 | |
| 诊断CLI错误 | |
| 远程TF执行 | 参考terraform-online-runtime.md |