All Products
Search
Document Center

Resource Orchestration Service:Use Metadata to group parameters

Last Updated:Aug 30, 2024

When you use Resource Orchestration Service (ROS) to create stacks to manage multiple resources, you must configure all parameters relevant to these resources. These configured parameters may interfere with each other. In this case, you can use Metadata to group resources to batch configure parameters in the ROS console.

Background information

Metadata is used to group the parameters defined in the Parameters section and define tags for each group. The topic provides an example on how to use Metadata to group parameters for different resources by using a template. In this example, the Deploy a Harbor Cluster (Existing VPC) is used. To view details of the template, go to the Deploy a Harbor Cluster (Existing VPC) page.

You can specify the following types of configurations to deploy a Harbor cluster in an existing virtual private cloud (VPC):

  • Infrastructure configuration

  • Harbor configuration

  • DB configuration

  • Redis configuration

  • SLB configuration

You can add the parameters for each type of configuration to the Parameters section of the corresponding group. The following code snippet of Metadata is used:

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 > Solution Center.

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

  4. Click Create Stack.

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

  6. Click Create.