s3_lifecycle - Add size thresholds #861
Labels
feature
This issue/PR relates to a feature request
good first issue
waiting_on_contributor
Needs help. Feel free to engage to get things unblocked
Summary
STANDARD_IA and GLACIER classes in S3 include an overhead for access history data. For small files the overhead can be larger than the file itself, so you end up paying more to store small files in these supposedly cheaper classes.
The solution is to add a minimum size filter to the lifecycle config. The API supports this. The s3_lifecycle ansible module does not yet support these. We should add a min size filter (and also max size filter).
Issue Type
Feature Idea
Component Name
s3_lifecycle
Additional Information
In the boto3 call,
ObjectSizeGreaterThan
andObjectSizeLessThan
are optional fields which go next to Prefix under Filter. They are the number of bytes (not kB).I propose this usage:
Code of Conduct
The text was updated successfully, but these errors were encountered: