All Products
Search
Document Center

Resource Management:Use tags to manage cost allocation

Last Updated:Jun 03, 2026

Tag your Alibaba Cloud resources by cost center, department, and project, and then use Cost Analysis to break down bills for cost allocation.

Background information

Step 1: Plan your tags

Plan your tags by dimension—cost center, department, and project—following the Tagging best practices. The following table shows an example.

Business dimension

Tag (tag key:tag value)

cost center

  • costcenter:Beijing

  • costcenter:Shanghai

  • costcenter:Hangzhou

department

  • department:Dev

  • department:Test

  • department:Ops

project

  • project:project A

  • project:project B

Step 2: Create and add tags to resources

Create tags and add them to your resources.

  1. Log on to the Resource Management console.

  2. In the navigation pane on the left, choose Tag > Tag, and then click Create Tag.

  3. In the Create Tag dialog box, create a tag.

    Create the tags you planned in Step 1: Plan your tags.

  4. Click Add Tags to Resources, select the resources that you want to tag, and then click Add Tag.

    For example, add the tags costcenter:Beijing, department:Dev, and project:project A to resources used by the Beijing development team on Project A.

Note

Step 3: Enable cost allocation tags

Set the tags you created as cost allocation tags.

Initial setup

  1. In the Expenses and Costs console, go to the Cost Allocation Tags page.

  2. On the Cost Allocation Tag page, read the description and click Next.

  3. Select the tags that you added in Step 2: Create and add tags to resources, specify them as cost allocation tags, and then click Next.

  4. Click Enable.

Ongoing management

  1. In the Expenses and Costs console, go to the Cost Allocation Tags page.

  2. On the Cost Allocation Tag page, find the tag that you added in Step 2: Create and add tags to resources and click Enable in the Actions column.

Step 4: Analyze costs

Analyze your costs based on the cost allocation tags.

  1. In the Expenses and Costs console, go to the Cost Analysis page. If Cost Analysis is not enabled, follow the on-screen instructions to enable it.

  2. Set filters to view specific cost information.

    • Example 1: View cost breakdowns by cost center (costcenter).

      1. From the Category drop-down list, select Instance Tag.

      2. From the tag key drop-down list, select costcenter.

      3. From the Time Granularity drop-down list, select Month.

      4. Set a time range of up to 12 months.

    • Example 2: View costs for a specific project (project).

      1. In the Filter area on the right, click Tag.

      2. Select a tag. For example, to query the costs for Project A, select the project:project A tag.

        You can select multiple tags. Results match any selected tag (OR logic).

      3. Click Apply.

  3. Optional: In the upper-right corner of the cost report, click

Related information