If you want to import a collection of existing resources to a stack and manage the resources in a centralized manner, you can create a resource management scenario.
Background information
When you create a resource management scenario, Resource Orchestration Service (ROS) filters resources within the specified scope and generates information about the resources, such as the resource architecture and properties. You can import the resources to ROS to generate a stack. This way, you can use the stack to manage the resources in a centralized manner. Then, you can view the stack on the Stacks tab of the scenario management page.
For more information about resource management scenarios, see Overview.
A template can be generated from a resource scenario with one click. For more information, see Generate a template based on a scenario with one click.
Step 1: Create a resource management 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, specify the Description parameter and select Resource Management as Select Scenario Type.
Configure the parameters in the Resource Range section.
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.
NoteSpecify tags that are added to existing resources. You can specify up to 10 tags.
(Optional) Select resource types from the Resource Type drop-down list.
You can select up to 15 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 15 resource types.
Select specified resources.
Select Source Resource as Method.
In the Source Resource section, select resource types from the Resource Type drop-down list and resource IDs from the Resource ID drop-down list.
You can select up to 20 resource types.
In the Configure Scenario section, set the Delete Resource parameter to one of the following values:
No: retains resources when you delete the stack that you use to manage the resources.
Yes: deletes resources by default when you delete the stack that you use to manage the resources. If you choose to retain specific resources when the Delete Stack dialog box appears, the resources are retained.
Configure the Tags parameter for the resource scenario.
NoteYou can add up to 20 tags to each resource.
Click Create.
After the resource scenario is created, Created appears in the Status column on the Scenarios page.
Step 2: Manage resources
On the Scenarios page, click the ID of the scenario.
In the upper-right corner of the scenario management page, click Manage Resource.
Click Yes.
After the resources are managed, click Disable.
Step 3: View managed resources
On the scenario management page, click the Stacks tab. Then, click the ID of the stack that you use to manage the resources.
On the stack management page, click the Resources tab to view the details of the managed resources.