

For similar capabilities to Amazon Timestream for LiveAnalytics, consider Amazon Timestream for InfluxDB. It offers simplified data ingestion and single-digit millisecond query response times for real-time analytics. Learn more [here](https://docs.aws.amazon.com//timestream/latest/developerguide/timestream-for-influxdb.html).

# Adding tags and labels to resources
<a name="tagging-keyspaces"></a>

 You can label Amazon Timestream for LiveAnalytics resources using *tags*. Tags let you categorize your resources in different ways—for example, by purpose, owner, environment, or other criteria. Tags can help you do the following: 
+  Quickly identify a resource based on the tags that you assigned to it. 
+  See AWS bills broken down by tags. 

 Tagging is supported by AWS services like Amazon Elastic Compute Cloud (Amazon EC2), Amazon Simple Storage Service (Amazon S3), Timestream for LiveAnalytics, and more. Efficient tagging can provide cost insights by enabling you to create reports across services that carry a specific tag. 

 To get started with tagging, do the following: 

1.  Understand [Tagging restrictions](https://docs.aws.amazon.com/timestream/latest/developerguide/TaggingRestrictions.html). 

1.  Create tags by using [Tagging operations](https://docs.aws.amazon.com/timestream/latest/developerguide/Tagging.Operations.html). 

 Finally, it is good practice to follow optimal tagging strategies. For information, see [AWS Tagging Strategies](https://d0.awsstatic.com/aws-answers/AWS_Tagging_Strategies.pdf). 

# Tagging restrictions
<a name="TaggingRestrictions"></a>

 Each tag consists of a key and a value, both of which you define. The following restrictions apply: 
+  Each Timestream for LiveAnalytics table can have only one tag with the same key. If you try to add an existing tag, the existing tag value is updated to the new value. 
+ A value acts as a descriptor within a tag category. In Timestream for LiveAnalytics the value cannot be empty or null.
+  Tag keys and values are case sensitive. 
+  The maximum key length is 128 Unicode characters. 
+ The maximum value length is 256 Unicode characters. 
+  The allowed characters are letters, white space, and numbers, plus the following special characters: `+ - = . _ : /` 
+  The maximum number of tags per resource is 50.
+  AWS-assigned tag names and values are automatically assigned the `aws:` prefix, which you can't assign. AWS-assigned tag names don't count toward the tag limit of 50. User-assigned tag names have the prefix `user:` in the cost allocation report. 
+  You can't backdate the application of a tag. 

# Tagging operations
<a name="Tagging.Operations"></a>

You can add, list, edit, or delete tags for databases and tables using the Amazon Timestream for LiveAnalytics console, query language, or the AWS Command Line Interface (AWS CLI). 

**Topics**
+ [Adding tags to new or existing databases and tables using the console](#Tagging.Operations.using-console)

## Adding tags to new or existing databases and tables using the console
<a name="Tagging.Operations.using-console"></a>

You can use the Timestream for LiveAnalytics console to add tags to new databases, tables and scheduled queries when you create them. You can also add, edit, or delete tags for existing tables.

**To tag databases when creating them (console)**

1. Open the Timestream console at [https://console.aws.amazon.com/timestream](https://console.aws.amazon.com/timestream).

1. In the navigation pane, choose **Databases**, and then choose **Create database**.

1. On the **Create database** page, provide a name for the database. Enter a key and value for the tag, and then choose **Add new tag**.

1. Choose **Create database**.

**To tag tables when creating them (console)**

1. Open the Timestream console at [https://console.aws.amazon.com/timestream](https://console.aws.amazon.com/timestream).

1. In the navigation pane, choose **Tables**, and then choose **Create table**.

1. On the **Create Timestream for LiveAnalytics table** page, provide a name for the table. Enter a key and value for the tag, and choose **Add new tag**. 

1. Choose **Create table**.

**To tag scheduled queries when creating them (console)**

1. Open the Timestream console at [https://console.aws.amazon.com/timestream](https://console.aws.amazon.com/timestream).

1. In the navigation pane, choose **Scheduled queries**, and then choose **Create scheduled query**.

1. On the **Step 3. Configure query settings** page, choose **Add new tag**. Enter a key and value for the tag. Choose **Add new tag** to add additional tags.

1. Choose **Next**.

**To tag existing resources (console)**

1. Open the Timestream console at [https://console.aws.amazon.com/timestream](https://console.aws.amazon.com/timestream).

1. In the navigation pane, choose **Databases**, **Tables** or **Scheduled queries**.

1. Choose a database or table in the list. Then choose **Manage tags** to add, edit, or delete your tags.

For information about tag structure, see [Tagging restrictions](TaggingRestrictions.md). 