1 Answer
- Newest
- Most votes
- Most comments
0
Unfortunately, I don't think tags can be set for S3 prefixes.
Set tags on the object instead.
Tags can be set on the object either at upload time or after upload.
If done with AWS CLI, it will look like this.
aws s3api put-object --bucket example-bucket --body test.txt --key test/key --tagging Key1=Value1
Relevant content
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
Is the smaller set of prefixes a subset of the larger set? As in you want a different lifecycle rule for objects with the prefix
example/
and another for objects with the prefixexample/smaller/
. Just want to make sure I understand the ask.