ABCD
ABCD

Reputation: 810

How should I append data in single object of s3 using multipart upload?

I have a task in which i want to upload some data in a single object of s3 continuously. I have created a lambda function in which I have called initiated upload, upload part (twice), and completeMultipartUpload. So when I test this lambda I get data in destination object as expected i.e.data from all source files without overwriting. But when I test lambda for second time the data gets overwrite whereas I want this data to get append at the end of destination object. How could I do this? Any idea?

Upvotes: 0

Views: 696

Answers (1)

E.J. Brennan
E.J. Brennan

Reputation: 46839

You can't really append data to an s3 object, it's all or nothing really - you can read the object back, add the new data to the object, and then re-save it to S3 in order to simulate the append - but that would get slow if you are adding data often to large objects.

Upvotes: 1

Related Questions