Organize cloud resources into resource groups and use Resource Orchestration Service (ROS) to automate O&M tasks such as batch resource cleanup.
Use cases
As cloud resource usage grows, manual O&M methods can no longer keep pace. ROS lets you define Alibaba Cloud resources — such as ECS instances and RDS database instances — and their dependencies in a template. The orchestration engine then automatically creates and configures all resources, enabling automated deployment and O&M. To target the right resources for O&M, you can organize them into resource groups by deployment environment, department, or project, and then use ROS to manage each group efficiently.
For example, an enterprise that runs multiple projects can use resource groups to isolate each project's resources and then use ROS to clean up resources in batches after a project ends.
Procedure
-
Create resource groups and transfer resources to them.
-
Log on to the Resource Management console.
-
Create a resource group.
In this example, create one resource group for each project.
For more information, see Create a resource group.
-
Transfer resources to their corresponding resource groups.
In this example, resources that belong to different projects are transferred to the corresponding resource groups.
For more information, see Transfer resources across resource groups.
-
-
Clean up resources by resource group.
-
Log on to the ROS console.
-
In the left-side navigation pane, choose Common Tools > Resource Cleanup.
-
Click Create Scenario.
-
Configure the scenario parameters.
Filter resources by Resource Group and keep other parameters at their default settings.
For information about the resource types that support cleanup, see Supported resource types.
-
Click Scan.
The scenario is created when its status changes to Created..
-
Click the scenario name. On the Overview tab, in the Resource Cleanup Summary section, view the list of resources targeted for cleanup.
-
In the upper-right corner of the scenario details page, click Update.
-
Set the cleaner action to Clean Up, and then click Update.
-
On the Overview tab, in the Resource Cleanup Detail section, verify that the resources in the resource group are cleaned up.
-
Learn more
The resource replication, resource import, and resource migration scenarios in ROS also support filtering resources by resource group. For more information, see Create a scenario.