All Products
Search
Document Center

Resource Orchestration Service:Create resource scenarios

最終更新日:Dec 27, 2023

This topic describes how to create the following types of resource scenarios in Resource Orchestration Service (ROS): resource replication scenario, resource management scenario, resource migration scenario, and resource detection scenario.

Create a resource replication scenario

  1. Log on to the ROS console.

  2. In the left-side navigation pane, click Scenarios.

  3. In the top navigation bar, select a region where you want to create the scenario from the region drop-down list.

  4. On the Scenarios page, click Create Scenario.

  5. In the Create Scenario dialog box, specify Description and select Resource Replication as Select Scenario Type.

  6. Configure the parameters in the Resource Range section.

    • Select resources that are associated with specified tags.

      1. Select Source Tag as Method.

      2. In the Source Tag section, configure Tag Key and Tag Value based on your business requirements.

        Note

        Specify tags that are added to existing resources. You can specify up to 10 tags.

      3. (Optional) Select resource types from the Resource Type drop-down list.

        You can select up to 15 resource types.

    • Select resources that belong to a specified resource group.

      1. Select Source Resource Group as Method.

      2. Select a resource group from the Source Resource Group drop-down list.

      3. (Optional) Select resource types from the Resource Type drop-down list.

        You can select up to 15 resource types.

    • Select specified resources.

      1. Select Source Resource as Method.

      2. In the Source Resource section, select resource types from the Resource Type drop-down list and resource IDs from the Resource ID drop-down list.

        You can select up to 20 resource types.

  7. In the Configure Scenario section, configure parameters for resources that you want to replicate.

    Parameter

    Description

    Delete Resource

    Valid values:

    • No: Retains the resources when the generated stack is deleted after the resources are replicated to the stack.

    • Yes: Deletes the resources when the generated stack is deleted after the resources are replicated to the stack. You can specify the resources that you want to retain in the Delete Stack dialog box when you delete the stack.

    Destination Region

    The destination region of the resources. By default, the region of the source resources is used.

    Destination Zone

    The destination zone of the resources. By default, if you replicate resources within the same region, the zone of the source resources is used. If you replicate resources across regions, the system automatically selects a zone.

    Destination VPC

    The destination virtual private cloud (VPC) of the resources. By default, if you replicate resources within the same region, the VPC of the source resources is used. If you replicate resources across regions, the system automatically creates a VPC.

    Note

    Make sure that the VPC CIDR blocks of the replicated resources contain the VPC CIDR blocks of the source resources.

    Destination vSwitch

    The destination vSwitch of the resources. By default, if you replicate resources within the same region, the vSwitch of the source resources is used. If you replicate resources across regions, the system automatically creates a vSwitch.

    Note

    Make sure that the vSwitch CIDR blocks of the replicated resources contain the vSwitch CIDR blocks of the source resources.

    Replicate ECS Instance Data

    This parameter takes effect only if the source resources contain an Elastic Compute Service (ECS) instance. If you select Replicate ECS Instance Data, ROS replicates the data on the ECS instance. To ensure data consistency, you must stop the source ECS instance before ROS replicates the instance data.

    Tags

    You can add tags to or remove tags from resources.

    Note

    You can add up to 20 tags to each resource.

  8. Click Create.

    After the scenario is created, Created appears in the Status column on the Scenarios page.

Create a resource management scenario

  1. Log on to the ROS console.

  2. In the left-side navigation pane, click Scenarios.

  3. In the top navigation bar of the Scenarios page, select a region where you want to create the scenario from the region drop-down list.

  4. On the Scenarios page, click Create Scenario.

  5. In the Create Scenario dialog box, specify a description for the scenario and set the scenario type to Resource Management.

  6. Configure the parameters in the Resource Range section.

    • Select resources that are associated with specified tags.

      1. Select Source Tag as Method.

      2. In the Source Tag section, configure Tag Key and Tag Value based on your business requirements.

        Note

        Specify tags that are added to existing resources. You can specify up to 10 tags.

      3. (Optional) Select resource types from the Resource Type drop-down list.

        You can select up to 15 resource types.

    • Select resources that belong to a specified resource group.

      1. Select Source Resource Group as Method.

      2. Select a resource group from the Source Resource Group drop-down list.

      3. (Optional) Select resource types from the Resource Type drop-down list.

        You can select up to 15 resource types.

    • Select specified resources.

      1. Select Source Resource as Method.

      2. In the Source Resource section, select resource types from the Resource Type drop-down list and resource IDs from the Resource ID drop-down list.

        You can select up to 20 resource types.

  7. Specify Delete Resource. Valid values:

    • No: retains resources if you delete a stack that you use to manage the resources.

    • Yes: deletes resources by default if you delete a stack that you use to manage the resources. If you specify resources that you want to retain in the Delete Stack dialog box when you delete the stack, only the specified resources are retained.

  8. Click Create.

    After the scenario is created, Created appears in the Status column on the Scenarios page.

Create a resource migration scenario

  1. Log on to the ROS console.

  2. In the left-side navigation pane, click Scenarios.

  3. In the top navigation bar, select a region where you want to create the scenario from the region drop-down list.

  4. On the Scenarios page, click Create Scenario.

  5. In the Create Scenario dialog box, specify Description and select Resource Migration as Select Scenario Type.

  6. Configure the parameters in the Resource Range section.

    • Select resources that are associated with specified tags.

      1. Select Source Tag as Method.

      2. In the Source Tag section, configure Tag Key and Tag Value based on your business requirements.

        Note

        Specify tags that are added to existing resources. You can specify up to 10 tags.

      3. (Optional) Select resource types from the Resource Type drop-down list.

        You can select up to 15 resource types.

    • Select resources that belong to a specified resource group.

      1. Select Source Resource Group as Method.

      2. Select a resource group from the Source Resource Group drop-down list.

      3. (Optional) Select resource types from the Resource Type drop-down list.

        You can select up to 15 resource types.

    • Select specified resources.

      1. Select Source Resource as Method.

      2. In the Source Resource section, select resource types from the Resource Type drop-down list and resource IDs from the Resource ID drop-down list.

        You can select up to 20 resource types.

  7. In the Configure Scenario section, configure parameters for resources that you want to migrate.

    Parameter

    Description

    Destination Region.

    The destination region of the resources. By default, the region of the source resources is used.

    Destination Zone

    The destination zone of the resources. By default, if you migrate resources within the same region, the zone of the source resources is used. If you migrate resources across regions, the system automatically selects a zone.

    Destination VPC

    The destination virtual private cloud (VPC) of the resources. By default, if you migrate resources within the same region, the VPC of the source resources is used. If you migrate resources across regions, the system automatically creates a VPC.

    Note

    Make sure that the VPC CIDR blocks of the migrated resources contain the VPC CIDR blocks of the source resources.

    Destination vSwitch

    The destination vSwitch of the resources. By default, if you migrate resources within the same region, the vSwitch of the source resources is used. If you migrate resources across regions, the system automatically creates a vSwitch.

    Note

    Make sure that the vSwitch CIDR blocks of the migrated resources contain the vSwitch CIDR blocks of the source resources.

    Replicate ECS Instance Data

    This parameter takes effect only if the source resources contain an Elastic Compute Service (ECS) instance. If you select Replicate ECS Instance Data, ROS replicates the data on the ECS instance. To ensure data consistency, you must stop the source ECS instance before ROS replicates the instance data.

    Tags

    You can add tags to or remove tags from resources.

    Note

    You can add up to 20 tags to each resource.

  8. Click Create.

    After the scenario is created, Created appears in the Status column on the Scenarios page.

Create a resource detection scenario

  1. Log on to the ROS console.

  2. In the left-side navigation pane, click Scenarios.

  3. In the top navigation bar, select a region where you want to create the resource scenario from the region drop-down list.

  4. On the Scenarios page, click Create Scenario.

  5. In the Create Scenario dialog box, specify Description and set Select Scenario Type to Resource Detection.

  6. In the Resource Range section, select resources based on your business requirements.

    • Select all resources.

      1. Select All Resources as Method.

      2. In the Configure Scenario section, select regions where you want to detect resources from the Detected Regions drop-down list.

        If you do not select a region, resources in the region where the resource scenario resides are detected.

      3. In the Tags section, click Add and add tags.

        Note

        You can add up to 20 tags.

    • Select resources that are associated with source tags.

      1. Select Source Tag as Method.

      2. In the Source Tag section, configure Tag Key and Tag Value based on your business requirements.

        Note

        You can specify up to five tags that are associated with existing resources.

      3. (Optional) Select resource types from the Resource Type drop-down list.

        You can select up to 15 resource types.

      4. In the Configure Scenario section, select regions where you want to detect resources from the Detected Regions drop-down list.

        If you do not select a region, resources in the region where the resource scenario resides are detected.

      5. In the Tags section, click Add and add tags.

        Note

        You can add up to 20 tags.

    • Select resources that belong to a source resource group.

      1. Select Source Resource Group as Method.

      2. Select a resource group from the Source Resource Group drop-down list.

      3. (Optional) Select resource types from the Resource Type drop-down list.

        You can select up to 15 resource types.

      4. In the Configure Scenario section, select regions where you want to detect resources from the Detected Regions drop-down list.

        If you do not select a region, resources in the region where the resource scenario resides are detected.

      5. In the Tags section, click Add and add tags.

        Note

        You can add up to 20 tags.

    • Select source resources.

      1. Select Source Resource as Method.

      2. In the Source Resource section, configure Resource Type and Resource ID.

        You can select only source resources that reside in the same region of the resource scenario.

        Note

        You can select up to 20 resource types.

      3. In the Tags section, click Add and add tags.

        Note

        You can add up to 20 tags.

  7. Click Create.