Skip to main content

Posts

Showing posts with the label AWS

Operations of Multipart Upload in S3

MULTIPART UPLOAD – INTRODUCTION Multipart upload is one of the most important operations in S3 protocol which is very efficient to upload the parts of the files separately and let the S3 combine those parts to a single object. Many S3 supported software, such as S3Browser can handle such situations when there is a need to upload of a large file, which is usually more than 10MB. In such situations, the software splits the file to into many parts, and upload these parts according to the configured setting for simultaneous uploads. Until now, we are only thinking about uploading the parts, but why we are not uploading the file at once instead of getting into a complex operations of multipart upload in s3. MULTIPART UPLOAD – LOGIC There is a very simple logic in this. Reduce the risk of the upload process. Keeping the upload long can become risky and open to encounter timeout issues. If you would like to upload a file, for instance, an ISO file around 4GB, it might be possible that a timeo...

Using Aws Cli for S3 Operations

  This article will be about some basic usages of awscli for S3 operations First we need to create a profile, this will be basically storing the information about our S3 connection. $ aws configure AWS Access Key ID []: <this will be Access Key Id> AWS Secret Access Key []: <this will be the Secret Key> Default region name []: <This will be the region name> Default output format []: <This will be the output format of each aws command> Listing the buckets $ aws s3 ls --endpoint-url <endpoint url> 2023-06-07 16:37:25 bucket1 2023-06-14 13:50:00 bucket2 List objects and prefixes in the bucket $ aws s3 ls --endpoint-url <endpoint url> bucket1 PRE folder1 2023-06-15 10:32:40 101713608 object1 Get ObjectLock configuration for a bucket $ aws s3api get-object-lock-configuration --bucket bucket1 { "ObjectLockConfiguration": { "ObjectLockEnabled": "Enabled", "Rule": { "DefaultRetention": { ...