- Newest
- Most votes
- Most comments
S3 is a key-value object storage service, there is no concept of ‘folder’ but 'prefix', for lifecycle rule if a rule is applied on a shorter prefix, it will take effect on the whole sub prefixes' objects, including 1.1 and 1.2. So yes applying the 1/ 'folder' will make 'folder' 1.1 and 1.2 being treated as the same as 1.3 and 1.4.
You can use object tag as the filter instead of prefix e.g creating a tag on all the objects with prefix 1/1.3 1/1.4 and use a single rule, or only applying lifecycle rules on 1/1.3 and 1/1.4.
Is it possible to create the tag only for objects that should be excluded from file movement rules?
For example:
- folderA
---folder1
------- file1
------- file2
---folder2
------- file3
------- file4
If I want to exclude folder 1, I create the tag only on folder 1.
Can I use this approach? Or it is mandatory create a tag for each folders?
Thanks
Relevant content
- asked 5 years ago
- Accepted Answerasked 2 years ago
- Accepted Answerasked 8 months ago
- asked 6 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 5 months ago