Enable tags and create a tag map

Tag mapping is when you combine multiple tags across your cloud integrations. Tag mapping enables you to group and filter similar tags with one tag key.

Before you begin

  • Tags are enabled and available to map. Cost management has a limit of 200 tags that you can enable.

Procedure

  1. In cost management, click Settings.
  2. Click the header tab, Tags and labels.
  3. Click the drop-down menu, Enable tags and labels.
  4. Select the tags that you want to enable. Clear a tag to disable it.
  5. Next, click the Map tags and labels drop-down menu and click Create a tag mapping.
  6. In the wizard that opens, select the tags that you want to make child tags. Then click Next.
  7. Select one tag that you want to be the parent tag. This action maps the parent tag to the children tags that you selected in the previous step. Click Next.
  8. Review your selections and click Create tag mapping.

Troubleshoot duplicate keys

For every resource, each tag key must be unique and have only one value. However, when you map tags, you can unintentionally create scenarios that violate this rule and create multiple values.

Ordinarily, having more than one value would duplicate your costs. However, to avoid duplication, cost management prioritizes one key’s value.

Consider the following example where you are running an EC2 instance on AWS. You tagged this instance with the following key > value pairs:

  • app > foo
  • App > bar

In cost management, you mapped app to App. Therefore, the same EC2 instance has the following key > value pairs:

  • App > foo
  • App > bar

In this situation, cost management prioritizes the pre-existing value of the key App > bar. Cost management also removes the association of the key app and its value foo from the AWS resource to prevent duplicate costs. App=foo is added to the App=bar cost.

Because App is set as the parent key, cost management prioritizes its value over the value of app in the tag mapping. Therefore, you should consider your tag mapping strategy before you set parent tags.

To troubleshoot issues with duplicate keys, ensure that your tag keys are unique and have only one value.