View a markdown version of this page

Managing AWS resource tags with Amazon S3 Storage Lens for Tables - Amazon Simple Storage Service

Managing AWS resource tags with Amazon S3 Storage Lens for Tables

Each Amazon S3 Storage Lens for Tables configuration is an AWS resource with its own Amazon Resource Name (ARN). When you create or edit a configuration, you can optionally add AWS resource tags to it. You can add up to 50 tags for each configuration.

Note

Amazon S3 Storage Lens for Tables supports two ways to manage the tags on a configuration. You can set tags inline through the tags parameter of PutStorageLensConfiguration, which replaces the configuration's entire tag set. You can also manage tags independently of the configuration by using the resource-level tagging operations, which take the configuration's ARN (arn:aws:s3tables:region:account-id:storage-lens/config-id): TagResource adds or updates tags, UntagResource removes tags by key, and ListTagsForResource returns the current tag set. For the tag-based IAM condition keys (aws:RequestTag/${TagKey}, aws:ResourceTag/${TagKey}, and aws:TagKeys), see Setting Amazon S3 Storage Lens for Tables permissions.

You can use AWS resource tags to categorize resources according to department, line of business, or project. By applying tags, you can quickly identify a specific configuration based on the tags that you've assigned to it. You can also use tags to track and allocate costs, and to activate attribute-based access control (ABAC).

Be aware of the following limitations:

  • Tag keys and tag values are case sensitive.

  • If you add a tag that has the same key as an existing tag on that configuration, the new value overwrites the old value.

  • If you delete a configuration, any tags for the configuration are also deleted.

  • Don't include private or sensitive data in your AWS resource tags.

  • System tags (with tag keys that begin with aws:) aren't supported.

  • The length of each tag key can't exceed 128 characters. The length of each tag value can't exceed 256 characters.

The following examples demonstrate how to use AWS resource tags with an Amazon S3 Storage Lens for Tables configuration.