Skip to main content

Account tags in CACM

Last updated on

What Are Account Tags?

In every major cloud provider (AWS, GCP, Azure), a Tag is a key-value label such as team=platform or env=production that you attach to a cloud resource. Based on these tags, spend can be grouped into meaningful buckets, so you can answer questions like How much did the platform team spend last month? But this only works if every resource is tagged. A single account can run thousands of resources, and they are created and destroyed all the time. Tagging each one by hand is hard to keep up with, and any untagged resource ends up unattributed instead of counted toward the right team or environment.

An Account Tag removes that burden. You set one tag on an entire AWS account, GCP project, or Azure subscription, and every resource inside inherits it, including resources with no tags of their own. Cloud & AI Cost Management (CACM) then lets you filter and group cost by account tags in Perspectives, Cost Categories, and Dashboards, exactly like resource tags.

Each cloud provider surfaces account tags differently and has its own setup requirement.

An Example - How It Works?

The following example shows how account tags turn many separate accounts into a clear per-team cost breakdown, without tagging a single resource. The same example is shown for AWS, GCP, and Azure below.

Say you run three AWS accounts, owned by two teams. You want to know what each team spends, but you do not want to tag every resource inside those accounts. Instead, you tag each account once with a team tag:

AWS accountteam tag
web-appteam=platform
checkoutteam=platform
analyticsteam=data

Group a Perspective by accountTag/team, and CACM folds the two platform accounts into a single line:

accountTag/teamMonthly cost
platform$84,000
data$31,000

Account Tag Key Formats By Cloud Provider

Each cloud provider uses a different key format for Account Tags in CACM. You can use Account Tags under Label V2 to filter and group your cost in Perspectives, Cost Categories, and Dashboards:

Cloud providerTag levelTermKey format under Label V2
AWSAccountAccount tagA key starting with accountTag/, such as accountTag/team
GCPProjectProject labelA key starting with projectLabels/, such as projectLabels/env
AzureSubscription or resource groupSubscription / resource group tagA plain key with no prefix, and only after you turn on tag inheritance

AWS and GCP add a prefix so you can tell an account tag apart from a resource tag. Azure adds no prefix, so its keys look like ordinary resource tags. Select your provider below for the full format and setup.

AWS Account Tags

Prerequisites:

  • AWS Organizations: Account tags apply only to member accounts in an AWS Organization. Standalone accounts do not have account-level tags.
  • CUR 2.0 connector: Go to Set up cost visibility for AWS to configure or migrate your connector for consolidated billing.
  • Who can apply: An AWS Organizations administrator applies tags to member accounts from the management account.

When you tag an AWS Organization member account, that tag flows into Harness and appears under Label V2 with the prefix accountTag/{key}.

  • Example key: accountTag/team
  • Example value: platform
  • Distinct from: resource-level tags, which have no prefix

How it works: Tags applied from the AWS Organizations management account to member accounts flow into CUR 2.0 under the resource_tags field with the accountTag/ prefix. Harness ingests these into Label V2.


Use Account-Level Tags in Harness

Once ingested, account-level tags are available as Label V2 dimensions across CACM reporting features.

Perspectives

In any Perspective, select Label V2 in Group By or as a Filter. Account-level tag keys appear alongside resource-level tag keys. Look for the prefix to identify the source:

PrefixSourceExample
accountTag/AWS account (org-level)accountTag/team
projectLabels/GCP projectprojectLabels/env
No prefixAzure (with tag inheritance) or resource-level tagcostDepartment

Cost Categories

Cost Categories classify your spend into buckets using rules, and each rule follows an Operand, Operator, Value structure. Account-level tags plug into that structure as Label V2 keys, so you can build a bucket from account tags without tagging a single resource.

For example, to create a Cost Bucket called Engineering that collects every account tagged for the engineering team:

  • Operand: Select your cloud provider (for example, AWS), then choose the Label V2 key accountTag/team.
  • Operator: Select IN to match a specific value.
  • Value: Select engineering.

Every dollar spent in AWS accounts tagged team=engineering then falls into the Engineering bucket. Because the rule matches at the account level, resources with no tags of their own are still counted, which is what makes account tags useful for organizations that manage spend by team or business unit rather than by individual resource.

BI Dashboards

BI Dashboards let you build custom cost widgets, and account-level tags are available there as Label V2 fields, the same place they appear in Perspectives and Cost Categories. You can filter and group any widget by an account tag, so a per-team or per-environment breakdown becomes a shared, always-on view instead of a one-off Perspective.

For example, to see monthly cost per team across every AWS account, add a Data Widget and group it by your account tag accountTag/team. Each team's spend then shows as its own line. To focus on just a few teams, add a filter for values like platform or data.


Troubleshooting

My AWS account tags are not appearing in Label V2 in Perspectives

Account tags require a CUR 2.0 connector and an AWS Organizations setup. Verify your connector is using CUR 2.0 and that your accounts are part of an AWS Organization with tags applied from the management account.

My GCP project labels are not showing up in Harness CACM Label V2

GCP project labels are included automatically from the billing export. Verify that labels are applied to your GCP projects in Cloud Resource Manager and that your GCP billing connector is active and syncing.

My Azure subscription or resource group tags are not visible in Harness CACM

Azure subscription and resource group tags require tag inheritance to be enabled in Azure Cost Management. Go to Cost Management > Manage subscription > Tag inheritance and enable it for each subscription, then re-sync your Azure connector in Harness.