qwencloud-deploy
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseQwen Cloud Deploy
Qwen Cloud Deploy
Quick Path
快速路径
- Route the task — Match to one of 4 modes: Full-Stack Deploy · Hot Update · Delete · HTTPS Setup.
- Deploy (default) — Execute steps 1→13 in order; each step has a reference doc.
- Confirm cost before creating anything — Show hourly price in USD, get user confirmation.
- Record state — On success write .
.qwencloud-deploy
- 任务路由 — 匹配以下4种模式之一:全栈部署 · 热更新 · 删除 · HTTPS配置。
- 部署(默认) — 按顺序执行步骤1→13;每个步骤都有参考文档。
- 创建资源前确认成本 — 以美元显示每小时价格,获取用户确认。
- 记录状态 — 成功后写入文件。
.qwencloud-deploy
Scope
适用范围
| In Scope | Out of Scope |
|---|---|
| Local project / Git → Alibaba Cloud International | China site → use |
| Full-stack ROS, hot update, cleanup | AWS/GCP/Azure/other clouds |
| ECS + optional RDS + OSS + public IP | K8s/Serverless/container orchestration |
| OAuth/AK auth (no credential collection) | — |
| 包含范围 | 排除范围 |
|---|---|
| 本地项目/Git仓库 → 阿里云国际版 | 中国站 → 使用 |
| 全栈ROS、热更新、资源清理 | AWS/GCP/Azure/其他云平台 |
| ECS + 可选RDS + OSS + 公网IP | K8s/Serverless/容器编排 |
| OAuth/AK认证(不收集凭证) | — |
Assumptions
前提假设
- CLI 3.x installed; when no valid credential, follow
aliyun.reference/deploy/01_env_check.md - Default region (Singapore).
ap-southeast-1
- 已安装CLI 3.x版本;若无有效凭证,请遵循
aliyun。reference/deploy/01_env_check.md - 默认区域为(新加坡)。
ap-southeast-1
Task Routing
任务路由
| Signal | Mode |
|---|---|
| Hot Update |
| Delete |
| "bind domain"/"HTTPS"/"SSL" (deployment exists) | HTTPS Setup |
| Git URL or local project (no existing deployment) | Full-Stack Deploy |
On trigger, display welcome message first (see ).
reference/rules/rule_interaction.md| 触发信号 | 模式 |
|---|---|
存在 | 热更新 |
存在 | 删除 |
| 用户提及“bind domain”/“HTTPS”/“SSL”(已完成部署) | HTTPS配置 |
| Git URL或本地项目(无现有部署) | 全栈部署 |
触发任务后,先显示欢迎信息(详见)。
reference/rules/rule_interaction.mdFull-Stack Deploy (Steps 1–13)
全栈部署(步骤1–13)
Phase 1 · Preparation
阶段1 · 准备工作
| Step | Action | Reference |
|---|---|---|
| 1 | Environment check | |
| 2 | Git clone (if Git URL) | |
| 3 | Project analysis | |
| 步骤 | 操作 | 参考文档 |
|---|---|---|
| 1 | 环境检查 | |
| 2 | Git克隆(若提供Git URL) | |
| 3 | 项目分析 | |
Phase 2 · Resource Planning
阶段2 · 资源规划
| Step | Action | Reference |
|---|---|---|
| 4 | Existing deployment scan | |
| 5 | Database identification | |
| 6 | ECS instance type selection | |
| 7 | Generate ROS template | |
| 8 | Stock check | |
| 9 | Template validation + cost estimate | |
| 步骤 | 操作 | 参考文档 |
|---|---|---|
| 4 | 扫描现有部署 | |
| 5 | 数据库识别 | |
| 6 | ECS实例类型选择 | |
| 7 | 生成ROS模板 | |
| 8 | 库存检查 | |
| 9 | 模板验证 + 成本估算 | |
Phase 3 · Execution
阶段3 · 执行部署
| Step | Action | Reference |
|---|---|---|
| 10 | Upload artifacts + regenerate template | |
| 11 | Create stack | |
| 12 | Wait for terminal state + health check | |
| 13 | Record state | |
| 步骤 | 操作 | 参考文档 |
|---|---|---|
| 10 | 上传制品 + 重新生成模板 | |
| 11 | 创建资源栈 | |
| 12 | 等待终端状态 + 健康检查 | |
| 13 | 记录状态 | |
Hot Update
热更新
Trigger: exists + user wants to update code. IP unchanged.
.qwencloud-deploy| Step | Action | Reference |
|---|---|---|
| U1 | Build + upload new artifacts | |
| U2 | Deliver update (Cloud Assistant) | |
| U3 | Health check + update state | |
Update script template: .
reference/hotfix/update_recipe.md触发条件:存在文件 + 用户需要更新代码。IP保持不变。
.qwencloud-deploy| 步骤 | 操作 | 参考文档 |
|---|---|---|
| U1 | 构建并上传新制品 | |
| U2 | 推送更新(通过Cloud Assistant) | |
| U3 | 健康检查 + 更新状态 | |
更新脚本模板:。
reference/hotfix/update_recipe.mdDelete / Cleanup
删除 / 资源清理
Trigger: User says "delete", "cleanup", "release resources".
⚠️ Irreversible — confirm twice. With RDS: warn about data loss.
🚫 Never manually delete individual resources — only use.delete_stack.sh
See .
reference/cleanup/delete_stack.md触发条件:用户提及“delete”、“cleanup”、“release resources”。
⚠️ 操作不可逆 — 需双重确认。若包含RDS:需警告数据丢失风险。
🚫 禁止手动删除单个资源 — 仅可使用脚本。delete_stack.sh
详见。
reference/cleanup/delete_stack.mdHTTPS Setup (Optional)
HTTPS配置(可选)
Trigger: User says "bind domain" / "HTTPS" / "SSL" after deployment exists.
See .
reference/https/https_setup.md触发条件:用户在部署完成后提及“bind domain”/“HTTPS”/“SSL”。
详见。
reference/https/https_setup.mdKey Constraints
关键约束
| Constraint | Rule |
|---|---|
| Currency | Always USD |
| Auth | OAuth (recommended) or AK/SK; never collect credentials via chat |
| Template upload | Must use |
| Stack name retry | Reuse — never regenerate |
| Resource deletion | Always via |
| Region default | |
| Commands to user | Never show underlying commands |
| 约束项 | 规则 |
|---|---|
| 货币单位 | 始终使用美元(USD) |
| 认证方式 | OAuth(推荐)或AK/SK;绝不通过聊天收集凭证 |
| 模板上传 | 必须使用 |
| 资源栈名称重试 | 重复使用 — 绝不重新生成 |
| 资源删除 | 始终通过 |
| 默认区域 | |
| 向用户展示的命令 | 绝不显示底层命令 |
File Layout
文件结构
scripts/
generate_template.py upload_artifacts.py
create_stack.sh record_state.py
delete_stack.sh update_app.sh
wait_and_probe.py setup_domain.sh
reference/
deploy/
01_env_check.md ~ 13_record_state.md
hotfix/
update_app.md update_recipe.md
cleanup/
delete_stack.md
https/
https_setup.md
rules/
rule_interaction.md rule_error_handling.md
templates/
ros_single[_rds].yaml
userdata/{systemd,docker,nginx_proxy,nginx_static,nginx_static_proxy}.shscripts/
generate_template.py upload_artifacts.py
create_stack.sh record_state.py
delete_stack.sh update_app.sh
wait_and_probe.py setup_domain.sh
reference/
deploy/
01_env_check.md ~ 13_record_state.md
hotfix/
update_app.md update_recipe.md
cleanup/
delete_stack.md
https/
https_setup.md
rules/
rule_interaction.md rule_error_handling.md
templates/
ros_single[_rds].yaml
userdata/{systemd,docker,nginx_proxy,nginx_static,nginx_static_proxy}.sh