Create a resource migration scenario to migrate a collection of resources and their dependencies.
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 resource scenario and generates a new node to migrate resources. After you initiate the migration, ROS creates a stack based on the new node to replicate resources with the same architecture as the source node. After the migration is complete, you can delete the source resources. ROS generates a stack of the resource management type before you can delete the resources.
You can view the stack on the Stacks tab of the resource scenario management page. For more information, see Terms and Overview.
Step 1: Create a resource migration scenario
-
Log on to the ROS console.
-
In the left-side navigation pane, click Scenarios.
-
In the top navigation bar, select a region where you want to create the resource scenario from the region drop-down list.
-
On the Scenarios page, click Create Scenario.
-
In the Create Scenario dialog box, enter a description for the resource scenario and select Resource Migration as the scenario type.
-
Select the resource scope.
-
Select resources by tag
-
In the Method section, select Source Tag.
-
In the Source Tag section, set the Tag Key and, optionally, the Tag Value.
NoteEnter the tags of your existing resources. You can specify up to 10 tags.
-
(Optional) In the Resource Type section, select one or more Resource Types.
You can select up to 15 resource types.
-
-
Select resources by resource group
-
In the Method section, select Source Resource Group.
-
In the Source Resource Group section, select a resource group.
-
(Optional) In the Resource Type section, select one or more Resource Types.
You can select up to 15 resource types.
-
-
Select specific resources
-
In the Method section, select Source resource.
-
In the Source resource section, select a Resource Types and a Resource ID.
You can select up to 20 resource types.
-
-
-
In the Configure Scenario section, configure parameters for resources that you want to migrate.
Parameter
Description
Destination Region
The destination region. By default, the region of the source resources is used.
Destination Zone
The destination zone. By default, the zone of the source resources is used for same-region migrations. For cross-region migrations, the system automatically selects a zone.
Destination VPC
The destination virtual private cloud (VPC). By default, the VPC of the source resources is used for same-region migrations. For cross-region migrations, the system automatically creates a VPC.
NoteMake sure that the VPC CIDR blocks of the migrated resources contain the VPC CIDR blocks of the source resources.
Destination vSwitch
The destination vSwitch. By default, the vSwitch of the source resources is used for same-region migrations. For cross-region migrations, the system automatically creates a vSwitch.
NoteMake 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 when the source resources include 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, stop the source ECS instance before replication.
Tags
Add or remove tags for resources.
NoteYou can add up to 20 tags to each resource.
-
Click Create.
After the resource scenario is created, its Status changes to Created.
Step 2: Migrate resources
-
On the Scenarios page, click the ID of the target resource scenario.
-
On the scenario management page, click Migrate Resources in the upper-right corner.
-
Click Migrate.
-
After the resource migration is complete, click Disable.
Step 3: View migrated resources
-
On the scenario management page, click the Stacks tab and then click the ID of the target stack.
-
On the stack management page, click the Resources tab to view the migrated resources.
Step 4: (Optional) Delete source resources
-
On the scenario management page, click Delete Source Resource in the upper-right corner.
-
Click Delete.
NoteROS generates a stack of the resource management type before you can delete the resources.
-
After the source resources are deleted, click Disable.