Removing tags - Amazon Inspector
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Removing tags

You can remove tags from Amazon Inspector resources. These resources include suppression rules and CIS scan configurations. Tags help you categorize Amazon resources based on specific criteria. This topic describes how to remove tags from Amazon Inspector resources.

Removing tags from Amazon Inspector resources

You can remove tags from suppression rules and CIS scan configurations. The following procedures describe how to remove tags in the console and with the Amazon Inspector API.

Removing tags in the console

You can remove tags from Amazon Inspector resources in the console.

Removing tags from suppression rules

You can remove a tag from a suppression rule by editing the suppression rule to no longer include the tag. For more information, see Editing a suppression rule.

Removing tags from a CIS scan configuration

You can remove a tag from a CIS scan configuration by editing the CIS scan configuration to no longer include the tag. For more information, see Editing a CIS scan configuration.

Removing tags with the Amazon Inspector API

You can remove a tag from an Amazon Inspector resource with the Amazon Inspector API.

Removing tags from Amazon Inspector resources

Use the UntagResource API to remove tags from Amazon Inspector resources.

The following snippet shows an example of how to remove tag from an Amazon Inspector resource using UntagResource. You must include the ARN of the resource and key for tag in the command. The following example uses an empty resource ARN for a suppression filter. The key is CostAllocation. For information about resource types for Amazon Inspector, see Actions, resources, and condition keys for Amazon Inspector2 in the Service Authorization Reference.

aws inspector2 untag-resource \ --resource-arn "arn:${Partition}:inspector2:${Region}:${Account}:owner/${OwnerId}/cis-configuration/${CISScanConfigurationId}" \ --tag-keys CostAllocation \ --region us-west-2