1
cliコマンドを使用して、S3ディレクトリのすべてのオブジェクトにタグ(またはタグのセット)を適用する方法はありますか?AWS S3 cli - ディレクトリ内のすべてのオブジェクトにタグを付けます
すなわち、私は二つのファイル(test0.txt
、test.txt
)を持っている場合、私は次の2つのコマンドを実行できます:私は次のエラーを取得する--keyオプションとしてフォルダ自体を伝えようとした際に
>aws s3api put-object-tagging --bucket mybucket --key foo/bar/test0.txt --tagging 'TagSet=[{Key=colour,Value=blue}]'
>aws s3api put-object-tagging --bucket mybucket --key foo/bar/test1.txt --tagging 'TagSet=[{Key=colour,Value=blue}]'
を(1つのオブジェクトを参照する必要があるため):
>aws s3api put-object-tagging --bucket mybucket --key foo/bar/ --tagging 'TagSet=[{Key=colour,Value=blue}]
An error occurred (NoSuchKey) when calling the PutObjectTagging operation: The specified key does not exist.
回避策はありますか?