Tagging Rules

The Tagging Rules report allows you to enforce your tagging policy across your AWS deployment by creating rules that will ensure your resources contain specific tag keys and values.


Procedure

  1. Launch CloudCheckr.
  2. Select an account from your Accounts List page.
  3. From the left navigation pane, choose Cost > Tags (from Detailed Billing) > Tagging Rules.
  4. From the Tagging Rules page, click the green + New Rule button to open the Tagging Rule Builder page.

  5. Type a name for your rule.

    Since CloudCheckr will refer to the rule name in the Improperly Tagged Resources report, provide a unique and easy-to-identify name.

  6. Define a tag key and tag value(s) for your rule.

    Click the buttons to see some examples of tag rules:

    Example 1 shows you how to create a tag rule that contains a tag key and one tag value:

    1. Type Environment as your tag key.

      You can only provide one tag key for each tag rule.

    2. De-select the Allow Any Tag Value checkbox.
    3. Type Production as your tag value.

      This screenshot shows you what the final rule will look like:

      When our application compares your resources with this rule, it will flag any resource that does not have the Environment tag key and does not have the Production tag value.

    Example 2 shows you how to create a tag rule that contains multiple tag values:

    1. Type Environment as your tag key.

      You can only provide one tag key for each tag rule.

    2. De-select the Allow Any Tag Value checkbox.
    3. Type Production, QA, Development in the Tag Values text field.
      When you have multiple tag values, you must separate each entry with a comma.

      This screenshot shows you what the final rule will look like:

      When our application compares your resources with this rule, it will flag any resource that does not have the Environment tag key and does not have Production, QA, or Development as its tag value.

    Example 3 shows you how to create a tag rule that allows for any tag value:

    1. Type Environment as your tag key.

      You can only provide one tag key for each tag rule.

    2. Verify that the Allow Any Tag Value checkbox is selected.

      This screenshot shows you what the final rule will look like:

      When our application compares your resources with this rule, it will flag any resource that does not have the Environment tag key.

    Example 4 shows you how to create a tag rule that looks for mutliple tag keys:

    1. Type Env as your tag key, de-select Allow Any Tag Value, and type Development as your tag value.
    2. Click to add another tag.
    3. Type Environment as your tag key, de-select Allow Any Tag Value, and type Development as your tag value.
    4. Click to add another tag.
    5. Type environment as your tag key, de-select Allow Any Tag Value, and type Development as your tag value.

      This screenshot shows you what the final rule will look like:

      When CloudCheckr compares your resources with this rule, it will flag any resource that does not have Env,Environment, or environment as the tag key and does not have the Development tag value.

  7. In the Region, Resource, and Account list boxes, select an option or options to refine your rule by location, resource type, or AWS account.

    Click to see a complete list of options.

  8. Click Create Rule .

    You can add as many rules to your account as you want.

  9. Reprocess your billing report for any previous months where you applied a rule.

    How did we do?