Cost Allocation Tags (New Version)

Updated at:
Copy as MD

Tags are identifiers assigned to cloud resources. They let you categorize, search for, and aggregate cloud resources that share the same characteristics across different dimensions. Cost allocation tags are tag keys selected from resource tags specifically for cost allocation and cost analysis: a bill shows the corresponding cost allocation dimension only after a resource tag is enabled as a cost allocation tag.

Note

Cost allocation tags were upgraded in October and are being rolled out to customers in phases. If your account has been upgraded, only the feature name has changed. The functionality, enabled tags, and historical cost allocation data remain unaffected, and no reconfiguration is required. The old and new versions may coexist during this phased rollout. For more details, see the official announcement.

How do I check whether my account is on the new version?

If the cost allocation tags page looks like the following figure, your account is already on the new version. You can also check the Actions column: if it has no Operation Records entry, your account is not on the new version yet.

image

If your account is not yet on the new version of cost tags, see the original "Cost allocation tags" topic.

How it works

Cost allocation tags filter existing resource tags so that the tags apply to bill splitting and cost analysis. The Cost Allocation Tags management page does not create tags. It only enables or disables existing resource tags.

Use cases

Description

Bill details

Enabled tags appear in the filter options and detail lists.

Split bill / split bill details

Each enabled tag key is expanded into a separate column for filtering, aggregation, and export by tag.

Cost analysis

Enabled tags appear in the filter options, grouping options, and detail lists.

Cost centers

Enabled tags appear in the filter options and detail lists.

Bill subscription and export

The filtering rules for OSS and MaxCompute subscription files, exported CSV files, and billing API response data are the same as in the preceding use cases.

When a bill is generated, it records only the tag keys of cost tags in the Enabled state and the tag values assigned to the resources. Tag keys assigned to resources but not enabled do not participate in cost allocation and are not recorded in bills.

Key concepts

Cost allocation tags and resource tags

Dimension

Resource tags

Cost tags

Where they are created

Tag console or individual cloud product consoles

Cannot be created. Select existing resource tags to enable.

Management scope

Each account creates tags and assigns them to resources independently.

Tag keys with the same name in the Alibaba Cloud account and its member accounts are merged into one cost tag.

Purpose

Resource categorization and management

Bill splitting and cost analysis

Merging tag keys with the same name

Tags in the Alibaba Cloud account and each member account are independent and may share the same tag key, such as env. The cost tags management page aggregates tags by tag key and displays one row per tag key:

  • Enabling a tag key includes all accounts that have the tag key in cost allocation.

  • The values in the bill column for that tag key come from the tag values actually assigned to each resource.

Tag status

Tag status is automatically synchronized from resource tags and indicates whether a tag can currently generate cost allocation data:

Tag status

Rule

Effect on bills

Assigned to Resources

The tag key is assigned to resources in at least one account.

If enabled, the tag values appear in newly generated bills.

Not Assigned to Resources

The tag key exists but is not assigned to resources in any account.

If enabled, the tag values in the bill column are empty.

Deleted

The tag key has been deleted from all accounts.

No new data is generated. Historical data is retained.

Enablement status

Enablement status

Description

Quota

Enabled

The tag participates in cost allocation and is recorded in newly generated bills.

Uses one quota slot

Not Enabled

The tag does not participate in cost allocation.

Uses no quota slots

Note
  • Enablement status and tag status are independent. After a tag is deleted on the resource tag side, its enablement status does not automatically change to Not Enabled, and the tag continues to use a quota slot.

  • If you recreate a deleted tag with the same tag key, the tag retains its previous enablement status and does not need to be enabled again.

Prerequisites

  • You have assigned tags to resources in the Tag console or in individual cloud product consoles. New resource tags are synchronized to the cost tags list in near real time.

  • The cost tags feature is activated. If it is not activated, see Activate cost tags to activate it.

Procedure

Log on to the Expenses and Costs console. In the left-side navigation pane, choose Cost Allocation > Cost Tags to go to the cost tags management page. All operations in this topic are performed on this page.

Activate cost tags

Important
  • If the cost tags feature is not activated, no tags appear in bills.

  • Activation is free and does not change original bill amounts or settlement data.

  • The feature cannot be deactivated after activation. Activation does not automatically enable any tags. Manually enable the tags that you need.

  1. Read the description of the effects of activation and click Activate Now.

  2. In the confirmation dialog box, click Confirm Activation.

Enable cost allocation tags

You can enable a maximum of 100 tag keys. Each enabled tag key uses a quota slot. For details about the quota rules, see Quotas. When you select tag keys, enable the tag keys that are actually used for cost allocation first. If system-injected tags, such as tags automatically added by Kubernetes clusters, are not required for cost allocation, leave them disabled.

  1. On the Cost Allocation Tags management page, click + Enable Tags.

  2. In the Tags Pending Enablement list on the left, filter the tag keys by tag type (Custom / System) and tag status, select the target tag keys, and then click → ( Add ). You can select multiple tag keys at a time.

  3. In the Selected Tags list on the right, confirm the tag keys and the quota change, and then click Confirm Enable.

    After enablement:

  • The tag key is added to the enabled tags list and uses one quota slot.

  • The change takes effect for the Alibaba Cloud account and all member accounts that have the tag key. You do not need to configure each account separately.

  • Newly generated bills start to record the tag. Previously issued bills are not automatically updated. To update them, initiate a backfill of up to the past 12 months. For details, see Backfill historical data.

Note
  • If you cannot find the tag that you want to enable, first go to the Tag console to create the tag and assign it to resources.

  • Tags that are not assigned to resources or have been deleted can also be enabled to backfill historical billing cycles, but they still use quota slots.

Disable cost tags

If a tag key has been deleted or is no longer used for cost allocation, disable it to release its quota slot.

  1. On the cost allocation tags management page, in the enabled tags list, find the target tag key and click Disable.

  2. In the Deactivate Cost Tag dialog box, click Confirm Deactivation.

    After disablement:

  • The change takes effect globally for the tag key. Newly generated bills no longer record the tag.

  • One quota slot is released immediately.

  • Historical cost allocation data that has already been generated is retained permanently. After you enable the tag again, backfill the billing cycles during which the tag was disabled. A backfill covers up to the past 12 months.

Backfill historical data

Enabling a tag takes effect only for newly generated bills. To allocate costs by the tag for historical billing cycles, initiate a backfill.

  1. In the enabled tags list, find the target tag key and click Backfill.

  2. In the Backfill Historical Data dialog box, select the starting billing cycle. The ending billing cycle is fixed to the current billing cycle. Click Create Backfill Task.

  3. In Operation Records, view the backfill task status (In Progress / Succeeded / Failed).

Item

Rule

Backfill range

Up to the past 12 months

Frequency limit

You can initiate only one backfill per tag key within 24 hours.

Time to take effect

About 24 hours for the current billing cycle; T+2 (about 24 to 48 hours) for historical billing cycles

Prerequisites

The tag is enabled, and the resources had the tag assigned during the corresponding billing cycle.

Restrictions during backfill

You cannot disable the tag or initiate another backfill for it.

Scope of impact

Refreshes the split bill details and cost analysis for the selected billing cycles. It does not change original bill records or total bill amounts.

Note

If a resource did not have the tag assigned during a billing cycle, the tag value in the bill column for that cycle remains empty after the backfill. The backfill feature is being rolled out in phases. If you do not see the backfill entry yet, wait for the rollout, which is scheduled to reach all customers by the end of December.

Tag health analysis

Tags that have been deleted but remain enabled still use quota slots and no longer generate cost allocation data. These tags are called inefficient tags.

  • The cost tags management page shows the number of inefficient tags. Click View Analysis Details to view the details, and disable tags in the list to release quota slots.

  • When three or more inefficient tags exist, the system sends an internal message alert and does not send a repeat alert within 30 days.

View operation records

In the enabled tags list, click Operation Records for the target tag key. The enablement, disablement, and backfill records for the tag are displayed in reverse chronological order. Each record includes the operation time, completion time, operation type, description, status, and operator. You can filter records by operation type and task status.

Quotas

Item

Rule

Quota limit

You can enable a maximum of 100 tag keys.

Unit

Counted by tag key. A tag key owned by multiple accounts uses only one quota slot.

Shared quota

The Alibaba Cloud account and member accounts share the same quota.

Usage

Any tag in the Enabled state uses a quota slot, including enabled tags whose tag status is Deleted.

Release

A quota slot is released immediately after a tag is disabled.

Note
  • You cannot enable more tags after the quota is exhausted. Disable tags that you no longer use to release quota slots, or submit a ticket to request a higher limit.

  • Tags that have been deleted but remain enabled continue to use quota slots. View and disable these tags in Tag health analysis.

Cost tags in bills

Consistency between the Alibaba Cloud account and member accounts

Enablement status is globally unique per tag key. For the same bill, the Alibaba Cloud account and member accounts see exactly the same tag columns and tag values. A tag cannot be enabled for only one account.

Bill subscription and export

When you create a bill subscription (OSS / MaxCompute) or export split bill details as a CSV file, use the Expand Cost Tags into Columns option to configure how tags are output:

Option

Output

On

Each enabled tag key generates a separate column in the file for direct filtering and aggregation.

Off

Tags are output with the details in an aggregated field.

To filter and aggregate data in subscription or exported files directly by tag, turn on this option.

Note
  • You can configure this option separately for each subscription or export task.

  • Each file expands a maximum of 100 tag columns. Even if you submit a ticket to raise the quota limit, the additional tags are available only in the console.

  • If a resource does not have a tag assigned, the tag value in that bill column is empty.

FAQ

How are cost tags related to cost allocation tags?

Cost tags were previously called cost allocation tags. Only the name has changed. All previously enabled tags, quota usage, configurations, and historical cost allocation data are retained. No action is required.

Why are tags missing from bills?

Check the following items in order:

  1. Verify that the cost tags feature is activated. If it is not activated, no tags appear in bills.

  2. Verify that the corresponding tag key is enabled. After activation, you must also enable the required tag keys on the cost tags management page.

  3. Verify that the tag is assigned to the resource. If it is not assigned, the tag value in the bill column is empty.

  4. Verify whether the bill was generated before the tag was enabled. Historical bills require a backfill. For details, see Backfill historical data.

Why do tag columns have headers but empty values in exported CSV or OSS billing files?

Exported files and subscription files follow the same rules as bills in the console. Verify that the cost tags feature is activated and that the corresponding tag keys are enabled, and then export the data again or wait for the next subscription synchronization cycle. To fill in historical billing cycles, initiate a backfill.

Is historical cost allocation data lost after a tag is disabled?

No. Disabling a tag affects only the bills generated after the tag is disabled. Historical cost allocation data that has already been generated is retained permanently. After you enable the tag again, you can backfill the billing cycles during which the tag was disabled. A backfill covers up to the past 12 months.

Is a cost tag automatically disabled after the tag is deleted on the resource tag side?

No. The tag remains in the Enabled state and continues to use a quota slot. Historical data is retained and can still be backfilled, but no new cost allocation data is generated. If you no longer need the tag, disable it manually to release the quota slot.

Does a backfill affect settled bills?

No. A backfill only refreshes tag attribution in split bill details and cost analysis. It does not change original bill records or total bill amounts, and does not affect completed payments or invoicing.

Can I disable a tag while a backfill is in progress?

No. The disable and backfill operations for the tag are temporarily unavailable during the backfill. They become available again after the backfill is complete.

How do I select tags if I have more than 100?

Enable the tag keys that are actually used for cost allocation first. For details about which tag keys to select, see Enable cost allocation tags. If you need more than 100 tag keys, submit a ticket to request a higher limit. Subscription and exported files still expand a maximum of 100 tag columns.