Tagging collections (Amazon CLI)
To tag a collection using the Amazon CLI, send a TagResource request:
aws opensearchserverless tag-resource --resource-arn arn:aws:aoss:us-east-1:123456789012:collection/my-collection--tags Key=service,Value=aossKey=source,Value=logs
View the existing tags for a collection with the ListTagsForResource command:
aws opensearchserverless list-tags-for-resource --resource-arn arn:aws:aoss:us-east-1:123456789012:collection/my-collection
Remove tags from a collection using the UntagResource command:
aws opensearchserverless untag-resource --resource-arn arn:aws:aoss:us-east-1:123456789012:collection/my-collection--tag-keysservice