File deletion with datasync if versioning is enabled.
What is happening if I'm syncing a File System with S3 versioning enabled, and I delete a file? I suppose that a delete marker is added, so the previous versions are kept. This mean that the client will have probably to do additional activities to clean up files deleted over a period of time if they want to keep their storage cost low.
Yes, that is my understanding. With versioning enabled, deletions in the file system will not remove the previously synced versions of the file store in S3 automatically. An object expiration lifecycle policy may be a helpful resource in reducing storage costs here.
If you have an object expiration lifecycle policy in your non-versioned bucket and you want to maintain the same permanent delete behavior when you enable versioning, you must add a noncurrent expiration policy. The noncurrent expiration lifecycle policy will manage the deletes of the noncurrent object versions in the version-enabled bucket. (A version-enabled bucket maintains one current and zero or more noncurrent object versions.) For more information, see How Do I Create a Lifecycle Policy for an S3 Bucket? in the Amazon Simple Storage Service Console User Guide
S3 Object lock in compliance mode, file uploaded thru cli, file properties shows compliance mode, I can still delete it.Accepted Answerasked 6 months ago
File deletion with datasync if versioning is enabled.Accepted Answerasked 2 years ago
Does S3 charge for delete marker objects with a Null ID?Accepted Answerasked 3 years ago
S3 Event Bridge events have null values for VersionId. Is this a bug?asked 5 months ago
Send efs backup to S3Accepted Answerasked 5 months ago
S3 Bucket Delete Marker Policy Not Workingasked 2 months ago
Why do we need S3 bucket versioning enabled in order to do replication?Accepted Answerasked a year ago
How do I restore deleted files in S3?asked 2 months ago
File System (FS) stuck with DELETING status in AWS FSX ONTAPasked 6 months ago
Do Amazon SageMaker manifest files enable dataset versioning?Accepted AnswerEXPERTasked a year ago