A tag is a label that you can define and assign to AWS resources, including certain types of AWS Security Hub resources. By using tags, you can identify, categorize, and manage resources in different ways, such as by purpose, owner, environment, or other criteria. For example, you can use tags to: apply policies, allocate costs, distinguish between versions of resources, or identify resources that support certain compliance requirements or workflows.
You can add tags to the following types of Security Hub resources:
-
Automation rules
-
Configuration policies
-
Hub
resource
A resource can have as many as 50 tags. Each tag consists of a required tag key and an optional tag value. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor for a tag key. For more information about tagging options and requirements, see Tagging fundamentals.
To add tags to a Security Hub
resource, you can use the Security Hub console or the Security Hub
API. However, the console doesn't support adding tags to the Hub
resource.
After adding tags, you can edit the tag and change the tag key or tag value.
To add or edit tags for multiple Security Hub resources at the same time, use the tagging operations of the AWS Resource Groups Tagging API.
Important
Adding tags to a resource can affect access to the resource. Before you add a tag to a resource, review any AWS Identity and Access Management (IAM) policies that might use tags to control access to resources.
To add tags to a Security Hub resource (console)
When you create an automation rule or a configuration policy, the Security Hub console provides options for adding tags to it. You can provide the tag key and tag value in the Tags section.