All Products
Search
Document Center

Resource Orchestration Service:Use a scenario to replicate resources

Last Updated:Aug 08, 2023

If you want to quickly replicate a collection of resources and dependencies between the resources, you can create a resource replication scenario.

Background information

When you create a resource replication scenario, Resource Orchestration Service (ROS) filters all resources within the specified scope and generates a source node to store the resources. ROS also adds new resources that are required for the scenario and generates a new node to replicate resources. ROS generates a stack based on the content on the new node. This way, ROS replicates a collection of resources that have the same architecture as the resources on the source node. You can view the stack on the Stacks tab of the scenario management page.

For more information, see Terms and How a scenario works.

Step 1: 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 a resource replication scenario from the region drop-down list.

  4. On the Scenarios page, click Create Scenario.

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

  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.

        You can specify up to 10 tags.

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

        You can select up to 20 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 20 resource types.

    • Select specified resources.

      1. Select Source Resource as Method.

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

        You can select up to 20 resource types.

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

    1. Specify Delete Resource.

      • No: If you delete a stack after you use the stack to replicate resources, the resources are retained.

      • Yes: If you delete a stack after you use the stack to replicate resources, the resources are deleted by default. If you specify resources that you want to retain in the Delete Stack dialog box when you delete the stack, only the resources that are not specified are deleted.

    2. Specify Destination Region.

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

    3. Specify 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.

    4. Specify 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.

    5. Specify 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.

    6. Specify 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.

  8. Click Create.

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

Step 2: Replicate resources

  1. On the Scenarios page, click the ID of the scenario.

  2. In the upper-right corner of the scenario management page, click Replicate Resource.

  3. Click OK.

  4. After the resources are replicated, click Disable.

Step 3: View replicated resources

  1. On the scenario management page, click the Stacks tab. Then, click the ID of the stack that you use to replicate the resources.

  2. On the stack management page, click the Resources tab to view the details of the replicated resources.