I Tried Reading Parts During a Multipart Upload with Amazon S3's New "GetPart" Feature

I Tried Reading Parts During a Multipart Upload with Amazon S3's New "GetPart" Feature

Even during a multipart upload, parts could be read whole or by byte range, and PartUploaded notifications reported their arrival. Record-based data like JSONL or CSV may allow downstream processing to start before completion if records spanning part boundaries can be missing.
2026.11.30

This page has been translated by machine translation. View original

Introduction

On November 29, 2026, Amazon S3 announced the GetPart API, which reads parts during a multipart upload. Along with it, the event notification s3:MultipartUpload:PartUploaded, which signals the arrival of a part, was also added.

https://aws.amazon.com/about-aws/whats-new/2026/11/amazon-s3-supports-reading-parts-multipart-uploads/

With GetPart, you can read an entire part or a byte range within a part while the upload is still in progress. In this article, I read parts from an in-progress upload and check the configuration and contents of the PartUploaded notification.

Test Environment

  • Region: us-east-1 (specified with the environment variable AWS_REGION)
  • AWS CLI: 2.42.6
  • Execution environment: Run from a local Linux terminal using Docker's amazon/aws-cli (commands in the text are written as aws)
  • Each part: 5 MiB (5242880 bytes) of random data
  • Bucket encryption: SSE-S3 (ServerSideEncryption in the response is AES256)
  • Notification destination: SQS standard queue in the same region
  • Uploads: 2 times. Key sample.bin (3 parts) and key sample2.bin (5 parts)

Prerequisites

  • This applies to uploads to general purpose buckets. S3 on Outposts, directory buckets, and access via access points are not supported.
  • Multipart uploads started after 00:00 UTC on November 29, 2026 are supported.
  • The required permission is s3:GetObject (s3:GetObjectVersion for buckets with versioning enabled). Reading an in-progress upload also requires s3:GetIncompleteUpload.

Reading Parts

In-progress Upload

In the first upload (sample.bin), I uploaded parts 1 to 3 with upload-part. Before calling complete-multipart-upload, I read part 1 with get-part. For <uploadId>, specify the UploadId returned by create-multipart-upload.

aws s3api create-multipart-upload --bucket <bucket> --key sample.bin
aws s3api upload-part --bucket <bucket> --key sample.bin --upload-id <uploadId> --part-number 1 --body part1.bin
aws s3api get-part --bucket <bucket> --key sample.bin --upload-id <uploadId> --part-number 1 got-use1-part1.bin

The response of get-part is as follows.

{
    "AcceptRanges": "bytes",
    "ContentLength": 5242880,
    "ETag": "\"f215ba439d1dacb5d4184aa7b9283d13\"",
    "MultipartUploadStatus": "IN_PROGRESS",
    "ChecksumCRC64NVME": "EnvifeJun9Q=",
    "ServerSideEncryption": "AES256",
    "StorageClass": "STANDARD"
}

The SHA-256 of the retrieved file matched the SHA-256 of part1.bin used for the upload.

Specifying a Byte Range

In the second upload (sample2.bin), after uploading all 5 parts and before completing it, I read the first 10 bytes of part 1 with --range.

aws s3api get-part --bucket <bucket> --key sample2.bin --upload-id <uploadId> --part-number 1 --range bytes=0-9 got-range-in-progress.bin
{
    "AcceptRanges": "bytes",
    "ContentLength": 10,
    "ETag": "\"27fb7eba10649ab1214217b2367ebf61\"",
    "MultipartUploadStatus": "IN_PROGRESS",
    "ContentRange": "bytes 0-9/5242880",
    "ServerSideEncryption": "AES256",
    "StorageClass": "STANDARD"
}

The 10 bytes retrieved matched the first 10 bytes of the original part.

Response After Completion

I completed sample2.bin with complete-multipart-upload, then read part 1 again with get-part using the same upload ID. The response is as follows.

{
    "AcceptRanges": "bytes",
    "ContentLength": 5242880,
    "ETag": "\"27fb7eba10649ab1214217b2367ebf61\"",
    "MultipartUploadStatus": "COMPLETED",
    "ServerSideEncryption": "AES256",
    "StorageClass": "STANDARD"
}

MultipartUploadStatus was COMPLETED, and the ETag was the same value as when I read it with a range specified during the upload. The retrieved content also matched the original part.

PartUploaded Notification

Configuration

I configured the bucket notification to send s3:MultipartUpload:PartUploaded events to an SQS standard queue. S3 event notifications cannot use an SQS FIFO queue as a destination, so I used a standard queue. A policy also needs to be set on the queue so that S3 can send to it.

Queue policy

I set the following policy in the Policy attribute of set-queue-attributes.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": { "Service": "s3.amazonaws.com" },
      "Action": "sqs:SendMessage",
      "Resource": "arn:aws:sqs:us-east-1:<ACCOUNT_ID>:<QUEUE_NAME>",
      "Condition": {
        "ArnLike": { "aws:SourceArn": "arn:aws:s3:::<bucket>" },
        "StringEquals": { "aws:SourceAccount": "<ACCOUNT_ID>" }
      }
    }
  ]
}

The notification configuration is as follows. Save it to notification.json and pass it with the command.

{"QueueConfigurations":[{"QueueArn":"arn:aws:sqs:us-east-1:<ACCOUNT_ID>:<QUEUE_NAME>","Events":["s3:MultipartUpload:PartUploaded"]}]}
aws s3api put-bucket-notification-configuration --bucket <bucket> --notification-configuration file://notification.json

Payload

The message body received via SQS is as follows. Some fields are omitted.

{
  "Records": [
    {
      "eventVersion": "2.7",
      "eventSource": "aws:s3",
      "awsRegion": "us-east-1",
      "eventTime": "2026-11-30T01:50:04.186Z",
      "eventName": "MultipartUpload:PartUploaded",
      "s3": {
        "s3SchemaVersion": "1.0",
        "bucket": {
          "name": "<bucket>"
        },
        "object": {
          "key": "sample.bin"
        }
      },
      "multipartUploadEventData": {
        "uploadId": "<uploadId>",
        "partNumber": 2,
        "partSize": 5242880,
        "partETag": "7572909d1808ebc60835f4aebe05d25b"
      }
    }
  ]
}

The part to read can be identified by s3.bucket.name, s3.object.key, and the uploadId and partNumber in multipartUploadEventData.

Summary

The GetPart API makes it possible to read parts during a multipart upload in Amazon S3, either in full or by byte range. The arrival of a part can be received through the s3:MultipartUpload:PartUploaded notification.

Continuous compressed streams (such as gzip) and formats with metadata at the end (such as Parquet) cannot be processed with a single part alone. For record-based data such as JSONL or CSV, if it is acceptable to drop records that span part boundaries, or if they can be joined later, downstream processing may be able to start without waiting for the upload to complete.

If you want to run processing that is unaffected by missing records across part boundaries without waiting for an S3 multipart upload to complete, give this update a try.

Share this article

AWSのお困り事はクラスメソッドへ