Alister Lee
Alister Lee

Reputation: 2455

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?

Upvotes: 10

Views: 8112

Answers (2)

Josh Hancock
Josh Hancock

Reputation: 845

Note the newer setting mentioned in Andrew's answer

Original response:

No. From the doc page you linked, "Once you initiate a multipart upload, Amazon S3 retains all the parts until you either complete or abort the upload."

If you do not either complete or abort the upload, any parts that have been uploaded will just kinda hang around and cause you storage charges until you do so.

Upvotes: 4

Andrew Arrow
Andrew Arrow

Reputation: 4565

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.

Upvotes: 9

Related Questions