Add tags to a keyspace - Amazon Keyspaces (for Apache Cassandra)
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).

Add tags to a keyspace

The following examples show how to add tags to a keyspace in Amazon Keyspaces.

Console
Add a tag to an existing keyspace using the console
  1. Sign in to the Amazon Web Services Management Console, and open the Amazon Keyspaces console at https://console.amazonaws.cn/keyspaces/home.

  2. In the navigation pane, choose Keyspaces.

  3. Choose a keyspace from the list. Then choose the Tags tab where you can view the tags of the keyspace.

  4. Choose Manage tags to add, edit, or delete tags.

  5. Choose Save changes.

Cassandra Query Language (CQL)
Add a tag to an existing keyspace using CQL
  • ALTER KEYSPACE mykeyspace ADD TAGS {'key1':'val1', 'key2':'val2'};
CLI
Add a tag to an existing keyspace using the Amazon CLI
  • The following example shows how to add new tags to an existing keyspace.

    aws keyspaces tag-resource --resource-arn 'arn:aws:cassandra:us-east-1:111222333444:/keyspace/myKeyspace/' --tags 'key=key3,value=val3' 'key=key4,value=val4'