These are the list of commands that we have used in the practicals.
#Link to download the video (terraform.mp4)
https://www.mediafire.com/file/c46u21m84mncouo/terraform.mp4/file
Commands:
split -b 10M large.txt part-
aws s3api create-multipart-upload --bucket kplabs-multipart-demo --key terraform.mp4
aws s3api upload-part --bucket kplabs-multipart-demo --key terraform.mp4 --part-number 1 --body part-aa --upload-id
aws s3api list-parts --bucket kplabs-multipart-demo --key sample.mp4 --upload-id
## UploadID
YOUR-UPLOAD-ID-HERE
Part 1: YOUR-ETAG-1 HERE
Part 2: YOUR-ETAG-2 HERE
Part 3: YOUR-ETAG-2 HERE
Contents of file.json
{
"Parts": [{
"ETag": "5833b49414367e97617e822236604fd6",
"PartNumber": 1
},
{
"ETag": "00d8da74339eaecd0cb6cd84d9efe98c",
"PartNumber": 2
},
{
"ETag": "8c66f4d523a3db19448e3056f33c421b",
"PartNumber": 3
}
]
}
# Sample Syntax
aws s3api complete-multipart-upload --multipart-upload file://file.json --bucket kplabs-multipart-demo --key terraform.mp4 --upload-id