This topic describes how to use Alibaba Cloud Toolkit - Alibaba ROS Templates and Alibaba Cloud ROS to efficiently manage templates and stacks.
Prerequisites
- Download and install JDK 1.8 or later.
- Download and install IntelliJ IDEA (2018.2 or later).
- Install and configure Cloud Toolkit in IntelliJ IDEA. For more information, see Install and configure Cloud Toolkit in IntelliJ IDEA.
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.
- Open your project in IntelliJ IDEA.
- Create a template. You can use one of the following methods:
- Right-click your project name in IntelliJ IDEA and choose or .
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.
- Right-click your project name in IntelliJ IDEA and choose or .
- 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. - 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. - 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 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.
- Open your project in IntelliJ IDEA.
- In the IntelliJ IDEA window, choose 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.