-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s3_lifecycle - Add size thresholds #861
Comments
@mdavis-xyz Thank you for this feature idea. Would you be willing to work on it and open a pull request? |
I just found out that Lifecycles actually already have a minimum size filter for these transitions.
Therefore I don't need this new Ansible functionality for my use case. So I probably won't write this until much later this year when I get some spare time (and after writing other PRs I more urgently need.) |
@alinabuzachis - I have raised PR #2205 to include minimum and maximum size thresholds. |
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: