Multipart Upload
Multipart Upload
cmd:-
ex:-
aws s3api create-multipart-upload --bucket vishnu-demo-multipart-s3 --key
512MB.zip
this command returns a json response.copy the upload id in the json for future
use.
upload id:
tiHVWa4hxvkr66CLU_3c131ktrmqJjFVfbLB.R0LyN9k7NOpV4XYRS7PeIqbVFizR5GrIQIGV.9rWUL5Im_
m257h.jtsWGpMz1PiDnya4YBe5296MrzgjQDN.iyr6LVb9wJbqNwh8fcGNrJntZfrUgwAuW7sRKkctnsONa
Eyavg-
each above command will give a json response.copy th etag in the json for
future use
"ETag": "\"fda5b58447db7d781df6ca14218ad95b\""
"ETag": "\"6ba3177bdfcab6aac08b10b5162734e6\""
"ETag": "\"ce656311eed1560a072a246985394c5b\""
Above command send json response like below and check all parts are uploaded or
not.
{
"Parts": [
{
"PartNumber": 1,
"LastModified": "2023-12-17T06:35:31+00:00",
"ETag": "\"fda5b58447db7d781df6ca14218ad95b\"",
"Size": 200000000
},
{
"PartNumber": 2,
"LastModified": "2023-12-17T06:36:33+00:00",
"ETag": "\"6ba3177bdfcab6aac08b10b5162734e6\"",
"Size": 200000000
},
{
"PartNumber": 3,
"LastModified": "2023-12-17T06:36:54+00:00",
"ETag": "\"ce656311eed1560a072a246985394c5b\"",
"Size": 136870912
}
],
"ChecksumAlgorithm": null,
"Initiator": {
"ID": "arn:aws:sts::971973167117:assumed-role/s3_full_access/i-
050291194911719f9",
"DisplayName": "s3_full_access/i-050291194911719f9"
},
"Owner": {
"ID": "e6cb1fc53c49974213a0a27bed7021da6c93d88a62b672aa379d3b159fc25a43"
},
"StorageClass": "STANDARD"
}
{
"Parts": [
{
"ETag": "fda5b58447db7d781df6ca14218ad95b",
"PartNumber":1
},
{
"ETag": "6ba3177bdfcab6aac08b10b5162734e6",
"PartNumber":2
},
{
"ETag": "ce656311eed1560a072a246985394c5b",
"PartNumber":3
}]
}
The above command send a json response like below that means upload success.
{
"ServerSideEncryption": "AES256",
"Location":
"https://vishnu-demo-multipart-s3.s3.ap-south-1.amazonaws.com/512MB.zip",
"Bucket": "vishnu-demo-multipart-s3",
"Key": "512MB.zip",
"ETag": "\"2b7102f7b6cfe3317ba4f6c55f70bf07-3\""
}