All Products
Search
Document Center

Resource Orchestration Service:Create an infrastructure template

Last Updated:Nov 19, 2025

Create an infrastructure template to visually design your resource architecture. You can edit resource properties in forms, perform price inquiries, and automate the deployment of the architecture.

Draw a resource architecture

  1. Log on to the ROS Architecture Editor console.

  2. In the navigation pane on the left, select Infrastructure Templates, and then click Create Infrastructure Template. In the dialog box, select ROS or Terraform, and then click OK.

    • If you select ROS, the ROS Architecture Editor provides ROS resource types. After you design the resource architecture, a ROS template is automatically generated.

    • If you select Terraform, the ROS Architecture Editor provides Terraform resource types. After you design the resource architecture, a Terraform template is automatically generated.

    image

  3. In the navigation pane on the left, expand a resource group to view and select the required resources. For example, you can drag resources such as Single-zone Network and ECS Instance to the Canvas.

    Note
    • You can use the Search For Cloud Resource Types box at the top to search for resource types. You can search in both Chinese and English.

    • The Quick Create group at the top contains common network architectures and cloud resources for you to quickly select.

  4. On the canvas, connect associated resources with a line. For example, you can attach an Elastic IP Address to an ECS Instance.

    Note

    When you click a resource, it is highlighted and connection points appear on its four sides. To connect resources, click and hold a connection point, drag the line to another resource, and then release the mouse button.

    image.png

(Optional) Edit region and resource properties

  1. On the canvas, click the Region icon (image). In the form on the right, select a deployment region, such as China (Hangzhou).

  2. On the canvas, click the Zone icon (image). In the form on the right, select a deployment zone, such as Zone G.

Note

The zone is a parameter in the generated template and is hidden by default. If you want to select a zone before deployment, you can click Hide Parameter to display the parameter.

  1. On the canvas, click the resource that you want to edit. In the form on the right, edit the resource properties. For example, for an ECS Instance (ECSInstance), you can edit properties such as Billing Method, Network Configuration, and Storage.

    image

(Optional) Manage template parameters and outputs

  1. In the upper-right corner, click Template. On the Template Content tab, you can view the automatically generated ROS or Terraform template.

  2. Click the Parameters tab to manage template parameters.

  3. Click the Outputs tab to manage template outputs.

(Optional) Set the infrastructure template name

  1. In the upper-left corner, click the image.png icon. In the drop-down menu, click Rename.

  2. Enter a name for the infrastructure template and click OK.

(Optional) Save the infrastructure template

In the upper-left corner, click the image icon. In the drop-down menu, click Save Changes and select Save As Draft or Save As New Version. Both options save the template that is automatically generated from the architecture diagram to the My Templates page in the ROS console.

  • If you select Save As Draft, the template is saved as a draft. This version undergoes a basic syntax check, but the resource properties are not validated.

  • If you select Save As New Version, the template is saved as an official version. The version number increments automatically, such as v1, v2, and so on. This version undergoes a strict syntax validation.

Note

The ROS Architecture Editor includes an auto-save feature. This feature is automatically triggered when the architecture diagram is modified and saves the template as a draft by default.

What to do next