If you want to replicate a collection of resources and dependencies between the resources
within a short period of time, 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 it works.
Step 1: Create a resource replication 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 Replication.
- 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.
- In the Configure Scenario section, configure parameters for resources that you want
to replicate.
- 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.
- Specify Destination Region.
This parameter specifies the region where the replicated resources are deployed. By
default, the region of the source resources is used.
- Specify Destination Zone.
This parameter specifies the zone of the replicated 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.
- Specify Destination VPC.
This parameter specifies the virtual private cloud (VPC) of the replicated 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.
- Specify Destination vSwitch.
This parameter specifies the vSwitch of the replicated 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.
- 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.
- Click Create.
After you create the scenario, Created appears in the Status column on the Scenarios page.
Step 2: Replicate resources
- On the Scenarios page, click the ID of the scenario.
- On the scenario management page, click Replicate Resource in the upper-right corner.
- Click OK.
- After you replicate the resources, click Disable.
Step 3: View replicated resources
- On the scenario management page, click the Stacks tab. Then, click the ID of the stack that you use to replicate the resources.
- On the stack management page, click the Resources tab. The details of the replicated resources appear.