S3 bucket to keep only 3 new objects #7687
-
Describe the featureas you see from the title , how can i make my amazon s3 bucket to only keep the newest 3 objects (they don't have the same name so i didn't enable the version) and delete the old ones ? Ps: any help without using lambda function cus i read that it takes money per request Use Caselifecycle Proposed SolutionNo response Other InformationNo response Acknowledgements
CLI version usedEnvironment details (OS name and version, etc.) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @itsyosefali, thanks for reaching out. I'm going to convert this into a discussion, since it is more of a guidance question that is better suited as a discussion. As mentioned in the bucket limitations documentation, buckets have no limit on the number of objects they can contain. If your objects are to be uploaded on a regular schedule, you could use bucket lifecycles to have older objects be deleted. Otherwise, you're right that you'd have to use Lambda or some other service to automate these deletions. Please let me know if you have any other questions. |
Beta Was this translation helpful? Give feedback.
Hi @itsyosefali, thanks for reaching out. I'm going to convert this into a discussion, since it is more of a guidance question that is better suited as a discussion.
As mentioned in the bucket limitations documentation, buckets have no limit on the number of objects they can contain. If your objects are to be uploaded on a regular schedule, you could use bucket lifecycles to have older objects be deleted. Otherwise, you're right that you'd have to use Lambda or some other service to automate these deletions. Please let me know if you have any other questions.