-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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: object lifecycle rule size ambiguity #27969
Comments
According to the cloudformation docs, the values are exclusive. Our docs could probably include the extra line the cloudformation docs have. |
…#27990) Docs: [cloudformation s3 bucket rule](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-rule.html). Closes #27969. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Describe the issue
It's possible to filter what objects a lifecycle rule applies to based on the size of the object using
objectSizeGreaterThan
andobjectSizeLessThan
.So if I want the rule to apply to objects 10 bytes or bigger I should be able to set
objectSizeGreaterThan: 9
. Objects that are 9 bytes should be left untouched since 10 is greater than 9, but 9 is not greater than 9.But when I look at the documentation for
objectSizeGreaterThan
it readsSo if I set it to 9 it would apply to objects of size 9 as well?
I don't know if the attribute should be renamed to
objectSizeGreaterThanOrEqualTo
or if the documentation for the attribute needs to be updated.Links
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.LifecycleRule.html#objectsizegreaterthan
The text was updated successfully, but these errors were encountered: