How to tag multiple objects in an s3 bucket using aws cli? #7273
-
Is there a way to apply a tag to multiple objects in an S3 bucket using one single put-object-tagging cli command?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @ajmalicf, thank you for reaching out. Unfortunately, AWS CLI commands for S3 API are only meant to work with one single key value and in this case, you might have to run the command a few times for multiple objects. Here's docs for your reference: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/delete-object-tagging.html Hope it helps! |
Beta Was this translation helpful? Give feedback.
Hi @ajmalicf, thank you for reaching out. Unfortunately, AWS CLI commands for S3 API are only meant to work with one single key value and in this case, you might have to run the command a few times for multiple objects. Here's docs for your reference: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/delete-object-tagging.html
Hope it helps!