Manage ROS templates and stacks using IntelliJ IDEA

更新时间:
复制 MD 格式

This topic describes how to use Alibaba Cloud Toolkit - Alibaba ROS Templates and Alibaba Cloud ROS to efficiently manage templates and stacks.

Prerequisites

Manage templates

Alibaba Cloud Toolkit - Alibaba ROS Templates is a tool for managing templates for Alibaba Cloud Resource Orchestration Service (ROS). It helps you manage local and remote ROS templates using a resource configuration file named .ros.config.yml.

Note The .ros.config.yml file is the source file that the Alibaba ROS Templates tool uses to manage templates.
  1. Open your project in IntelliJ IDEA.
  2. Create a template. You can use one of the following methods:
    • Right-click your project name in IntelliJ IDEA and choose New > AlibabaCloud ROS YAML Template or New > AlibabaCloud ROS JSON Template.
      Important The Alibaba ROS Templates tool does not manage templates created using this method. To manage the template with the tool, you must add the template path to the .ros.config.yml file and move the template to the appropriate JSON or YAML folder.
    • In the Alibaba ROS Templates tool on the right side of the IntelliJ IDEA window, click Create. Then, enter a name for the template, select the template type, and create a local template.
  3. Enter the resource type in the Resources parameter.
    • AlibabaCloud ROS YAML Template example
    • AlibabaCloud ROS JSON Template example
    Note Press Ctrl and left-click a parameter to navigate to its definition. Press Ctrl and hover the mouse pointer over a parameter to view its information.

    This topic describes the template management feature.

    Feature Description
    Refresh Refresh the folder.
    Create Creates a local template. When you use this plugin to create a template for the first time, it creates JSON, YAML, and .ros.config.yml files by default.
    Delete Deletes the selected template.
    Local Templates A virtual folder for local templates.
    Remote Templates A virtual folder for remote templates.
  4. Right-click a local template and perform operations as needed.

    This section describes the operations for this feature.

    Feature Description
    Upload Uploads the template.
    Rename Renames the template.
    Delete Deletes the local template.
  5. Right-click a remote template and perform operations as needed.

    The following steps describe how to use this feature.

    Feature Description
    Download Downloads the template.
    Properties Views the properties of the template.
    Delete Deletes the remote template.
    Note Double-click a remote template to open it as a temporary file. Right-click and choose Alibaba Cloud ROS > Update Template to compare your changes with the remote template and update it.

Manage stacks

Alibaba Cloud Toolkit - Alibaba Cloud ROS (Alibaba Cloud View) is a tool for managing stacks for Alibaba Cloud Resource Orchestration Service (ROS). It helps you efficiently manage remote stacks.

  1. Open your project in IntelliJ IDEA.
  2. In the IntelliJ IDEA window, choose Alibaba Cloud View > Alibaba Cloud ROS and perform operations as needed.

    This topic describes the operations for the stack management feature.

    Feature Description
    Region Select a region.
    Search In the current region, search for a stack by its ID or name. If you do not enter a search term, the list of stacks in the current region is refreshed.
    Create Stack Creates a stack. You are redirected to the Create Stack page in the ROS console.
    Stack ID/Name Click the name to view the properties of the stack.
    Status Shows the current status of the stack.
    Create at Shows the time when the stack was created.
    Outputs Shows the output values of the stack.
    Delete Deletes the stack.
    More
    • Properties: Shows the properties of the stack.
    • Resources: Shows all resources in the stack.
    • Parameters: Shows the parameters of the stack.