You can create a resource replication scenario to quickly replicate a group of resources and their dependencies.
Background information
When you create a resource replication scenario, Resource Orchestration Service (ROS) filters all resources within the specified scope to generate source nodes and corresponding new nodes. ROS then creates a stack from the new nodes to provision resources with the same architecture as the source nodes. You can view the created stack on the Stacks tab of the resource scenario management page.
For more information, see Basic concepts and Overview.
Step 1: Create a resource scenario
-
Log on to the ROS console.
-
In the left-side navigation pane, click Scenarios.
-
In the top navigation bar, select a region from the drop-down list.
-
On the Scenarios page, click Create Scenario.
-
In the Create Scenario dialog box, enter a description and select Resource Replication 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.
-
-
-
Configure the destination parameters.
Parameter
Description
Delete Resource
Specifies how source resources are handled when the replicated stack is deleted. Valid values:
-
Retain: Retains the source resources when the replicated stack is deleted.
-
Delete: Deletes the source resources by default when the replicated stack is deleted. In the deletion confirmation dialog box, you can select which resources to retain. ROS deletes any unselected resources.
Destination Region
The region where resources are replicated. Default: the current region.
Destination Zone
The destination availability zone for the replicated resources. For same-region replication, the source availability zone is used by default. For cross-region replication, ROS selects an availability zone automatically.
Destination VPC
The destination Virtual Private Cloud (VPC) for the replicated resources. For same-region replication, the source VPC is used by default. For cross-region replication, ROS creates a new VPC automatically.
NoteEnsure that the CIDR block of the destination VPC does not overlap with the CIDR block of the source VPC.
Destination vSwitch
The destination vSwitch for the replicated resources. For same-region replication, the source vSwitch is used by default. For cross-region replication or when a specific destination VPC is selected, ROS creates a new vSwitch automatically.
NoteEnsure that the CIDR block of the destination vSwitch does not overlap with the CIDR block of the source vSwitch.
Replicate ECS Instance Data
Available only when the source resources include an ECS instance. To ensure data consistency, stop the source ECS instance before you replicate the instance data.
Tags
Add or remove tags on resources.
NoteEach resource can have up to 20 tags.
-
-
Click Create.
After the resource scenario is created, its Status changes to Created.
Step 2: Replicate resources
-
On the Scenarios page, click the ID of the target resource scenario.
-
On the resource scenario management page, click Replication resources in the upper-right corner.
-
Click Determine replication.
-
After the replication is complete, click Disable.
Step 3: View resources
-
On the resource 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 details of the replicated resources.