1 Answer
- Newest
- Most votes
- Most comments
2
Hello!
The issue you're experiencing is caused by not being the owner of the objects that are uploaded with an unsigned request via the CLI, which causes the objects to not be applied to the lifecycle rule. Here are a few options we can do to ensure you own the objects in the bucket:
- [1] Configure Enforced Bucket Ownership (ACL's disabled)
- [2] Your bucket policy can require bucket-owner-full-control (ACL's enabled)
Note: Configuring Enforced Bucket Ownership is considered best practice for S3 Buckets but be aware that it will disable legacy ACL's for that bucket, potentially causing you to use a bucket policy (if you want to make certain objects public and they were previously made public by ACL).
Resources:
[1] https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html
answered a year ago
Relevant content
- Accepted Answerasked 8 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago