Search code examples
amazon-web-servicesfile-uploadamazon-s3

Does AWS S3 automatically abort multipart uploads after a timeout?


Using multipart uploads, Amazon S3 retains all the parts until the upload is either completed or aborted. In an anonymous drop situation, it would be good for abandoned uploads to be automatically aborted after a timeout to reclaim the space and avoid the cost of holding any parts that made it.

It would be possible to create some external monitor using ListMultipartUploads, but it would be better if S3 did it automatically.

If you initiate an upload and maybe upload some parts, but then do nothing further, will S3 eventually abort it for the bucket owner?


Solution

  • You can set this here:

    https://media.amazonwebservices.com/blog/2016/con_s3_life_multi_clean_1.png

    https://aws.amazon.com/blogs/aws/s3-lifecycle-management-update-support-for-multipart-uploads-and-delete-markers/

    and say afer 7 days or so, just delete them.