All Products
Search
Document Center

Resource Management:Allocate the costs of ECS instances by resource group

Last Updated:Sep 02, 2024

To allocate costs by resource group after you create resource groups, you can create cost centers and map the resource groups to the cost centers.

Scenarios

A gaming company has three gaming projects under development: G1, G2, and G3. Each project requires multiple types of resources. The company has only one Alibaba Cloud account but more than 100 Elastic Compute Service (ECS) instances within this account. The finance department of the company wants separate bills to be generated for the projects.

Procedure

  1. Log on to the Resource Management console and go to the Resource Group page to create resource groups.

    1. Create a resource group for each project. The names of the resource groups correspond to those of the project. The names of the resource groups are R-G1, R-G2, and R-G3.

      For more information, see Create a resource group.

    2. Move the ECS instances to the desired resource groups based on the actual users of the ECS instances.

      For more information, see Transfer resources between resource groups.

  2. Log on to the Expenses and Costs console and go to the Cost Centers page. On the page, create cost centers R-G1, R-G2, and R-G3. Then, configure automatic allocation rules for the resource groups. This way, the ECS instances are allocated to the desired cost centers based on the resource groups to which the ECS instances belong. For more information, see Cost center.

  3. Go to the Split Bill page of the Expenses and Costs console and view bills by cost center.