All Products
Search
Document Center

Resource Orchestration Service:Use Metadata to group parameters

Last Updated:Jun 03, 2025

When you use Resource Orchestration Service (ROS) to create a stack to manage multiple categories of resources, you must configure specific parameters for the resources. However, the parameters may conflict with each other. In this case, you can use Metadata to group the parameters of different resources. This helps you configure the parameters in the ROS console in a centralized manner.

Background information

Metadata is used to group the parameters defined in the Parameters section and specify a label for each group. This topic provides an example on how to use Metadata to group the parameters of different resources by using a template. In this example, the Deploy a Harbor Cluster (Existing VPC) template is used. For more information about the template, go to the Deploy a Harbor Cluster (Existing VPC) page.

The following groups of configurations are specified to deploy a Harbor cluster:

  • Infrastructure Configuration

  • Harbor Configuration

  • DB Configuration

  • Redis Configuration

  • SLB Configuration

You can add the parameters for each group of configurations to the Parameters section of the corresponding group. The following sample code provides an example of Metadata:

Metadata:
  ALIYUN::ROS::Interface:
    ParameterGroups:
      - Parameters:
          - VSwitchZoneId
          - VPC
          - VSwitch
          - SecurityGroup
        Label:
          default:
             
            en: Infrastructure Configuration
      - Parameters:
          - ClusterAmount
          - InstanceType
          - SystemDiskCategory
          - SystemDiskSize
          - Password
          - HarborAdminPassword
        Label:
          default:
             
            en: Harbor Configuration
      - Parameters:
          - DBInstanceEngineAndVersion
          - DBInstanceClass
          - DBInstanceStorage
          - DBUser
          - DBPassword
        Label:
          default:
             
            en: DB Configuration
      - Parameters:
          - RedisInstanceClass
          - EvictionPolicy
          - RedisPassword
        Label:
          default:
             
            en: Redis Configuration
      - Parameters:
          - LoadBalancerSpec
          - Bandwidth
        Label:
          default:
             
            en: SLB Configuration
    TemplateTags:
      - Creates one ECS(Harbor) instance - Existing Vpc

Procedure

  1. Log on to the ROS console.

  2. In the left-side navigation pane, choose Templates > Public Templates.

  3. Search for the Deploy a Harbor Cluster (Existing VPC) template.

  4. Click Create Stack.

  5. In the Configure Parameters step, specify the Stack Name parameter and configure parameters in the Infrastructure Configuration, Harbor Configuration, DB Configuration, Redis Configuration, and SLB Configuration sections.

  6. Click Next:Check and Confirm. Then, click Create.