Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Tagging collections (AWS CLI)

Focus mode
Tagging collections (AWS CLI) - Amazon OpenSearch Service

To tag a collection using the AWS 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=aoss Key=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-keys service
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.