If you want to migrate a collection of resources and dependencies between the resources, you can create a resource migration scenario.
Background information
When you create a resource migration 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 migrate resources. After you initiate resource migration, 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. After you migrate the resources, you can delete the resources on the source node. Before you can delete the resources, ROS generates a stack of the resource management type.
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 migration scenario
- Log on to the ROS console.
- In the left-side navigation pane, click Scenarios.
- In the upper-left corner of the Scenarios page, select a region where you want to create the scenario from the region drop-down list.
- On the Scenarios page, click Create Scenario.
- In the Create Scenario dialog box, enter a description of the scenario and set the scenario type to Resource Migration.
- Specify Resource Range.
- Select resources that are associated with specified tags.
- Select Source Tag as Method.
- In the Source Tag section, configure Tag key and Tag value based on your business requirements.
You can specify up to 10 tags.
- (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.
- Select Source Resource Group as Method.
- Select a resource group from the Source Resource Group drop-down list.
- (Optional) Select resource types from the Resource Type drop-down list.
You can select up to 20 resource types.
- Select specified resources.
- Select Source Resource as Method.
- In the Source Resource section, configure Resource Type and Resource ID.
You can select up to 20 resource types.
- Select resources that are associated with specified tags.
- In the Configure Scenario section, configure parameters for resources that you want to migrate.
- Click Create. After you create the scenario, Created appears in the Status column on the Scenarios page.
Step 2: Migrate resources
- On the Scenarios page, click the ID of the scenario.
- On the scenario management page, click Migrate Resources in the upper-right corner.
- Click Migrate.
- After you migrate the resources, click Disable.
Step 3: View migrated resources
- On the scenario management page, click the Stacks tab. Then, click the ID of the stack that you use to migrate the resources.
- On the stack management page, click the Resources tab. The details of the migrated resources appear.
Step 4: (Optional) Delete source resources
- On the scenario management page, click Delete Source Resource in the upper-right corner.
- In the message that appears, click Delete. Note Before you can delete the resources, ROS generates a stack of the resource management type.
- After you delete the resources, click Disable.