使用新的 Control Room 进行部署
- Updated: 2025/12/15
部署模式 2 提供了有关在 AWS 私有云上创建、管理和运行 API 任务 的全新基础设施的设置指南。 您需要准备两个 AWS 账户,分别用于 Control Room 安装和 API 任务 运行时环境。
工作流
在部署模式 2 中,必须首先在 AWS EC2 实例上安装 Control Room,然后将 AWS 账户连接到 AWS 账户上的 API 任务。
| 步骤 | 任务 | 描述 |
|---|---|---|
| 1 | 在 AWS EC2 实例上设置并安装 Control Room。 | 根据您的需求,在 Windows EC2 实例或 Linux EC2 实例上安装 Control Room。 可进行基于用户界面的安装和无提示模式安装。 |
| 2 | Control Room 安装后 | 安装 Control Room 后,请完成安装后过程,以完成设置。 |
| 3 | 在 Control Room AWS 账户上部署 CloudFormation 堆栈。 | api-task-controlroom-account.yaml CloudFormation 模板文件包含必须根据您的需求进行修改的参数,以便 Control Room AWS 账户中的 IAM 角色能够在 API 任务 AWS 账户中承担管理员角色。 |
| 4 | 在 API 任务 AWS 上部署 CloudFormation 堆栈。 | api-task-controlroom-account.yaml CloudFormation 模板文件包含必须根据您的需求进行修改的参数,以便 Control Room AWS 账户中的 IAM 角色能够在 API 任务 AWS 账户中承担管理员角色。 |
| 5 | 设置 VPC 对等连接 | 在两个 AWS 账户之间设置 VPC 对等连接。 |
| 6 | API 任务 AWS 账户中的路由表配置。 | 更新 API 任务 AWS 的路由表,以确保出站数据流量通过 VPC 对等连接进行路由。 |
| 7 | Control Room AWS 账户中的路由表配置。 | 更新 Control Room AWS 的路由表,以确保传入数据流量通过 VPC 对等连接进行路由。 |
| 8 | 在 Control Room AWS 中配置 DNS | 在 Control Room AWS 中配置 DNS,使 Control Room 能够通过 VPC 对等连接,使用 Control Room 的域名下载依赖项。 |
| 9 | 连接 Control Room AWS 账户到 API 任务 AWS。 | 连接两个 AWS 账户,以便在 AWS 私有云上运行 API 任务。 |