-
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 - ability to set the number of newest noncurrent versions to retain #1606
s3_lifecycle - ability to set the number of newest noncurrent versions to retain #1606
Conversation
1837c90
to
aadfa5f
Compare
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
@davejames can you also expand the integration test to verify the new parameter? tests/integration/targets/s3_lifecycle/tasks/main.yml |
aadfa5f
to
40fba8d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some integration tests and a dependency on the relevant version of botocore.
I also set it up so that if you set noncurrent_version_keep_newer you must also set noncurrent_version_expiration_days, otherwise AWS spits out schema errors.
Backport to stable-5: 💚 backport PR created✅ Backport PR branch: Backported as #1687 🤖 @patchback |
…s to retain (#1606) s3_lifecycle - ability to set the number of newest noncurrent versions to retain SUMMARY Adds the ability to set "Number of newer versions to retain" ISSUE TYPE Feature Pull Request COMPONENT NAME s3_lifecycle ADDITIONAL INFORMATION See: https://docs.aws.amazon.com/AmazonS3/latest/API/API_NoncurrentVersionExpiration.html Previously only the NoncurrentDays parameter was supported, this PR adds support for NewerNoncurrentVersions Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Mark Chappell <None> (cherry picked from commit 3391b27)
@davejames Thanks for taking the time to submit this PR. |
…s to retain (#1606) (#1687) [PR #1606/3391b27d backport][stable-5] s3_lifecycle - ability to set the number of newest noncurrent versions to retain This is a backport of PR #1606 as merged into main (3391b27). SUMMARY Adds the ability to set "Number of newer versions to retain" ISSUE TYPE Feature Pull Request COMPONENT NAME s3_lifecycle ADDITIONAL INFORMATION See: https://docs.aws.amazon.com/AmazonS3/latest/API/API_NoncurrentVersionExpiration.html Previously only the NoncurrentDays parameter was supported, this PR adds support for NewerNoncurrentVersions Reviewed-by: Mark Chappell <None>
SUMMARY
Adds the ability to set "Number of newer versions to retain"
ISSUE TYPE
COMPONENT NAME
s3_lifecycle
ADDITIONAL INFORMATION
See: https://docs.aws.amazon.com/AmazonS3/latest/API/API_NoncurrentVersionExpiration.html
Previously only the
NoncurrentDays
parameter was supported, this PR adds support forNewerNoncurrentVersions