On this page
On 30 November I wrote a short note on Amazon S3 GetPart, the new API that reads one part of a multipart upload while the upload is still open. That note came from the documentation alone and left questions it could not answer: what a reader sees when a part is uploaded twice, what happens at completion, abort and delete, and what the new part event carries.
This is the tested follow-up. I ran one script against a new bucket in Ireland. A 5 MiB part was readable in the first request after UploadPart returned, with a response in about 30 ms. A replaced part is served with its new bytes and new ETag, and the request has no conditional header to pin the version you meant. The event names the upload, the part number, the part size and the part ETag, and it reached a queue 0.4 to 1.2 seconds after the upload call returned.

The test
The script runs from AWS CloudShell with boto3 1.44.17. It creates a private general purpose bucket with default settings, sends the bucket’s events to two SQS queues, one through S3 Event Notifications and one through an Amazon EventBridge rule, and then works through five small scenarios with random 5 MiB parts. Every response is printed with its status code and the headers that matter. At the end it deletes everything it made.
%%{init: {'theme':'base','themeVariables':{'primaryColor':'#FFF3E0','primaryTextColor':'#232F3E','primaryBorderColor':'#FF9900','lineColor':'#232F3E','clusterBkg':'#F8FAFC','clusterBorder':'#CBD5E1','edgeLabelBackground':'#FFFFFF','nodeTextColor':'#232F3E'}}}%%
flowchart TD
U["Uploader thread:
CreateMultipartUpload, UploadPart"] --> B["S3 bucket,
upload in progress"]
B --> N["S3 Event Notification:
PartUploaded"]
B --> E["EventBridge:
Part Created"]
N --> Q1["SQS queue 1"]
E --> Q2["SQS queue 2"]
Q1 --> R["Reader:
GetPart, compare ETag"]
R --> B
classDef compute fill:#FFF3E0,stroke:#FF9900,stroke-width:2px,color:#232F3E
classDef store fill:#F0FFF4,stroke:#1D8102,stroke-width:2px,color:#145202
classDef bus fill:#F3E8FF,stroke:#7C3AED,stroke-width:2px,color:#4C1D95
class U,R compute
class B,Q1,Q2 store
class N,E busReads during the upload
With the upload open and one part in the bucket, these are the requests and what came back.
| Request | Response |
|---|---|
GetPart, part 1, straight after UploadPart returned | 200 in 33 ms. x-amz-multipart-upload-status: IN_PROGRESS, the same ETag that UploadPart returned, a x-amz-checksum-crc64nvme header, and the bytes that were sent. |
GetPart, part 1, Range: bytes=0-1023 | 206 in 28 ms. Content-Range: bytes 0-1023/5242880. The range is counted inside the part, not inside the future object. |
| GetPart, part 1, two ranges | 400 InvalidArgument: The requested range is not valid. |
| GetPart, part 2, not uploaded yet | 404 NoSuchPart. |
| GetPart with an upload ID that does not exist | 404 NoSuchUpload. |
| GetObject on the key | 404 NoSuchKey. The object does not exist until the upload completes. |
| GetPart, part 3, uploaded before part 2 | 200 in 27 ms. Parts are readable in whatever order they arrive. |
Two details are worth keeping. NoSuchPart and NoSuchUpload are different errors, so a reader can tell “not here yet” from “this upload is gone”. And the ETag of a part is the same value in three places: the UploadPart response, the GetPart response and ListParts.
A replaced part
The API reference warns that a part of an open upload can be overwritten by another UploadPart with the same part number. I uploaded part 1 a second time with different bytes. The next GetPart returned the new bytes and the new ETag. ListParts showed one part 1, with the new ETag. The old bytes are no longer reachable.
The request side gives a reader nothing to guard against this. In boto3 1.44.17 the GetPart operation accepts eight parameters: Bucket, Key, UploadId, PartNumber, Range, ChecksumMode, ExpectedBucketOwner and RequestPayer. There is no IfMatch. You cannot ask for “part 1, but only if it is still the version I was told about”. The check has to happen after the response, by comparing the ETag you received with the one you expected.
I did not test this case, but it follows from the result above: a reader that fetches one part in several range requests can receive the first ranges from one upload of the part and the later ranges from its replacement. Each response carries the part ETag. Compare it on every range, and start the part again when it changes.
Completion, abort and delete
| State of the upload | GetPart returned |
|---|---|
| Completed with parts 1, 2, 3 | 200, x-amz-multipart-upload-status: COMPLETED, same ETag and bytes as before completion. The upload ID stays valid for reading. |
| Completed with parts 1 and 3 only | 405 UnsupportedOperation: GetPart is not supported for this object because its multipart upload was completed with non-consecutive part numbers. Use GetObject instead. |
| Aborted | 404 NoSuchUpload on the first request after AbortMultipartUpload returned. |
| Completed, then the object deleted | 404 NoSuchUpload. |
After a normal completion, GetPart with the upload ID and GetObject with partNumber returned the same bytes for part 2. The responses differ: GetObject answers 206 with a Content-Range inside the whole object, the object ETag and x-amz-mp-parts-count; GetPart answers 200 with the part ETag and the status header. The x-amz-checksum-crc64nvme header that every in-progress read carried was absent from the completed reads.
The non-consecutive case has a consequence for a reader that falls behind. Parts 1 and 3 were both readable while the upload was open. The moment the upload completed without a part 2, both returned 405. On that object GetObject with partNumber=2 returned the bytes that had been uploaded as part 3, because completion renumbers the parts. A reader that is still working through such an upload when it completes loses GetPart, and the part numbers it holds no longer mean the same thing.
Permissions, encryption and access points
s3:GetIncompleteUploadis enforced. A bucket policy that denies this one action was accepted, and GetPart on the open upload then returned 403AccessDenied, with the action named in the message. I tested the deny only. I did not test a principal that holdss3:GetObjectwithout it.- SSE-KMS needs nothing extra. A part of an upload encrypted with the AWS managed key came back with a plain GetPart call and
x-amz-server-side-encryption: aws:kms. The caller was the account root, so this says nothing about which KMS permissions a narrower role needs. - SSE-C was not reached. The bucket, created with default settings, refused the SSE-C upload itself with
AccessDenied. The documentation says GetPart does not support SSE-C; I could not confirm it. - Access points are refused, on the read only. I started an upload and sent a part through an access point, and that worked. GetPart through the same access point returned 400
InvalidRequest: Access points are not supported for this operation. The same part read through the bucket name returned 200.
The last point matters for an estate that uses access points as its permission boundary. The uploader can stay on its access point. The reader needs a route through the bucket name, and a bucket policy that restricts access to access points has to make room for it.
The event payload
The S3 notification configuration accepted the event name s3:MultipartUpload:PartUploaded. When I read the S3 User Guide on 2 December, the page of supported event types did not list it, and the EventBridge page listed the field names for the part event without an example. These are the two shapes as they arrived, with identifying values masked and the upload IDs shortened.
Through S3 Event Notifications:
{
"eventVersion": "2.7",
"eventSource": "aws:s3",
"awsRegion": "eu-west-1",
"eventTime": "2026-12-02T12:31:46.807Z",
"eventName": "MultipartUpload:PartUploaded",
"userIdentity": { "principalId": "<masked>" },
"requestParameters": { "sourceIPAddress": "<masked>" },
"responseElements": { "x-amz-request-id": "<masked>", "x-amz-id-2": "<masked>" },
"s3": {
"s3SchemaVersion": "1.0",
"configurationId": "<masked>",
"bucket": {
"name": "amzn-s3-demo-bucket",
"ownerIdentity": "<masked>",
"arn": "arn:aws:s3:::amzn-s3-demo-bucket"
},
"object": { "key": "demo/completed.bin", "sequencer": "<masked>" }
},
"multipartUploadEventData": {
"uploadId": "X__4s6K4...Zgn9Q--",
"partNumber": 1,
"partSize": 5242880,
"partETag": "66abd0645d10747a9dbc81b6a87edd21"
}
}Through EventBridge:
{
"version": "0",
"id": "5e1a2553-931e-2411-c6d9-c101c1deee41",
"detail-type": "Object Multipart Upload Part Created",
"source": "aws.s3",
"account": "<masked>",
"time": "2026-12-02T12:31:47Z",
"region": "eu-west-1",
"resources": ["arn:aws:s3:::amzn-s3-demo-bucket"],
"detail": {
"version": "0",
"event-version": "1.3",
"bucket": { "name": "amzn-s3-demo-bucket" },
"object": { "key": "demo/kms.bin", "sequencer": "<masked>" },
"multipart-upload-event-data": {
"upload-id": "n3RWCho1...9hAHg--",
"part-number": 1,
"part-size": 5242880,
"part-etag": "a291d0a416ee4f5901e9a5f13d4fd4f3"
},
"request-id": "<masked>",
"requester": "<masked>",
"source-ip-address": "<masked>",
"reason": "UploadPart"
}
}What to take from them:
- The event is enough to make the call. Bucket, key, upload ID and part number are all there, so the consumer needs no lookup before GetPart.
- The part ETag is in the event. That is the value to compare with the GetPart response, and it is what makes a replaced part detectable.
- The
objectblock is thin. It holds the key and a sequencer. There is no object size and no object ETag, because there is no object yet. Code written forObjectCreatedevents that readss3.object.sizewill not find it. - The part data sits in a different place in each shape. In the S3 notification,
multipartUploadEventDatais beside thes3block, not inside it, with camel-case names. In EventBridge it ismultipart-upload-event-datainsidedetail, with hyphenated names. - EventBridge also reports the end of an upload. The run aborted three uploads and completed three. EventBridge delivered three
Object Multipart Upload Abortedevents and threeObject Createdevents. I subscribed the S3 notification queue to the part event and tos3:ObjectCreated:CompleteMultipartUploadonly, so I cannot say whether S3 Event Notifications have an abort event.
Every UploadPart produced one event on each path: 16 calls and 16 EventBridge events in the last run, including the part sent through the access point, and no notification arrived twice. Sixteen events show that the wiring works. They say nothing about ordering or duplicates at volume, so design the consumer to tolerate repeats, as with any S3 event.
An event-driven reader
The last scenario puts the pieces together. One thread uploads six 5 MiB parts, two seconds apart, and uploads part 2 twice in a row with different bytes, as a client retry would. A second thread polls the notification queue and reads each announced part.
%%{init: {'theme':'base','themeVariables':{'primaryColor':'#FFF3E0','primaryTextColor':'#232F3E','primaryBorderColor':'#FF9900','lineColor':'#232F3E','signalColor':'#0073BB','signalTextColor':'#0F172A','actorBkg':'#FFF3E0','actorBorder':'#FF9900','actorTextColor':'#232F3E','noteBkgColor':'#FFF8E7','noteBorderColor':'#FF9900','noteTextColor':'#232F3E'}}}%%
sequenceDiagram
participant U as Uploader
participant S as Amazon S3
participant R as Reader
U->>S: UploadPart 2, first attempt
U->>S: UploadPart 2, again
S-->>R: PartUploaded, first ETag
R->>S: GetPart 2
S-->>R: Bytes with the second ETag
Note over R: ETag differs from the event: skip
S-->>R: PartUploaded, second ETag
R->>S: GetPart 2
S-->>R: Bytes with the second ETag
Note over R: ETag matches: processThis is the function the reader calls for each record, as it ran:
def read_part_for_event(record: dict):
"""Reads the part that one s3:MultipartUpload:PartUploaded record announces.
Returns ("ok", etag, bytes, upload status), or ("stale", ...) when the part has been uploaded again since the
event was sent, or ("gone", ...) when the upload was aborted or the part is not there. A stale event needs no
retry: the later upload of the same part number sends its own event.
"""
info = record["multipartUploadEventData"]
try:
response = s3.get_part(
Bucket=record["s3"]["bucket"]["name"],
Key=unquote_plus(record["s3"]["object"]["key"]),
UploadId=info["uploadId"],
PartNumber=info["partNumber"],
)
except ClientError as error:
if error.response["Error"]["Code"] in ("NoSuchUpload", "NoSuchPart"):
return "gone", None, b"", None
raise
etag = response["ETag"].strip('"')
if etag != info["partETag"].strip('"'):
response["Body"].close()
return "stale", etag, b"", None
status = response["ResponseMetadata"]["HTTPHeaders"].get("x-amz-multipart-upload-status")
return "ok", etag, response["Body"].read(), statusSeven events arrived for six parts. The reader processed six and skipped one as stale, the first event for part 2. Every ETag it kept matched ListParts at the end, and the six pieces it read were byte for byte the object that CompleteMultipartUpload produced.
| Measure | Result |
|---|---|
S3 Event Notification, from UploadPart returning to SQS accepting the message | 0.41 to 1.12 s, median 0.76 s (7 events) |
| EventBridge rule to SQS, same measure | 0.45 to 1.22 s, median 0.73 s (15 events) |
| Reader holds part 1 | 1.31 s after the upload began |
| Upload finishes | 10.60 s after it began |
The reader had the first part nine seconds before the upload ended, and in a real pipeline that gap grows with the size of the file. The delay figures compare a clock in CloudShell with a clock in SQS, so read them to a tenth of a second. The two paths were equally quick here.
Design consequences
- Treat the part ETag as the version of the part. Store it with whatever you derive from the part. Compare it on every read, and compare your stored ETags with
ListPartsor the completed object before you commit a result. - Skip stale events, do not retry them. When the ETag in the response differs from the ETag in the event, a newer event is already on its way.
- Handle three endings.
NoSuchUploadmeans aborted, or completed and deleted. 405UnsupportedOperationmeans completed with gaps in the part numbers: switch toGetObjectand discard the part numbers you held. StatusCOMPLETEDmeans the parts can no longer change. - Subscribe to the end of the upload too. A reader driven only by part events never learns that the upload was aborted. The EventBridge abort event, or a timeout on the upload ID, closes that gap.
- Plan the reader’s route to the bucket. Access points do not serve GetPart. Grant
s3:GetIncompleteUploadto the reader role only, and remember that a deny on it switches the feature off for a bucket. - Keep event parsing separate for the two shapes. The field names differ, and neither is the
ObjectCreatedshape.
In a health data pipeline the same points carry more weight. A part of a half-uploaded study or export is patient data from the moment it lands, readable by any principal with the two permissions, and it disappears without trace for the reader if the upload is aborted. Anything derived from parts should stay provisional until the upload completes and the ETags have been reconciled.
Recommendation
GetPart behaved as the documentation describes in every case I could reach, and the event carries what a consumer needs. I would now build early validation, previews and first-pass indexing on it. For work with side effects, build the ETag check and the three endings first; the function above is a starting point. Two gaps remain before I would call it settled for a regulated workload: the behaviour of the events under real volume, and the KMS permissions a narrow reader role needs. Both are cheap to test in your own account. This launch is in my re:Invent 2026 adopt, pilot and watch list.
A note on testing: I ran the script from AWS CloudShell in eu-west-1 on 2 December 2026 with boto3 1.44.17, as the account root, against a new general purpose bucket with default settings. It ran four times while I corrected how it measured event delay and added the ETag check to the reader. The status codes and messages are from the third run and matched the first; the reader results, event counts and delays are from the fourth. Request times are to the response headers, measured once each. I did not test SSE-C, DSSE-KMS, a customer managed key, a narrow IAM role, versioned or directory buckets, archive storage classes, UploadPartCopy, cross-account access, parts larger than 5 MiB, other Regions, or events at volume. The statements about the documentation are from the pages listed below as I read them that day. Everything the script created was deleted when it finished.
The complete sample for this article is on GitHub: nithinmohantk/blog-samples-working-repo/s3-getpart-tested. Clone it with git clone https://github.com/nithinmohantk/blog-samples-working-repo.git and open the s3-getpart-tested folder. Its README says how to run it and what has been verified.
References & Further Reading
- → Amazon S3 now supports reading parts of multipart uploads in progress— The AWS announcement, 29 November 2026
- → GetPart— API reference: request, response headers and limits
- → Downloading objects— S3 User Guide: reading parts of a multipart upload
- → EventBridge event message structure— S3 User Guide: field names for the multipart upload events
- → Event notification types and destinations— S3 User Guide: the supported event types for S3 Event Notifications
- → Amazon S3 GetPart: Reading a Multipart Upload While It Is Still Arriving— The earlier short note, written from the documentation
- → Sample code for this article— The lab script and the recorded output
Discover more from C4: Container, Code, Cloud & Context
Subscribe to get the latest posts sent to your email.