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
-
Sign in to the AWS Management Console, and open the Amazon Keyspaces console at https://console.aws.amazon.com/keyspaces/home
. -
In the navigation pane, choose Keyspaces.
-
Choose a keyspace from the list. Then choose the Tags tab where you can view the tags of the keyspace.
Choose Manage tags to add, edit, or delete tags.
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 AWS 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'
-
Create keyspace with tags
Delete tags from a keyspace