The server approves a delivery address and operation. The client then sends the parcel directly to S3 instead of through the server.
Should this file pass through the application server?
The essentials in 30 seconds
before you dive into the detailsPicture this
Approve the address, send the parcel directly
Approve the delivery
Presigned URL -> scoped request authorization
The application chooses the object and permitted operation.
Use the direct route
Client -> S3 object upload
File bytes do not pass through the application server.
Separate upload authorization, browser access, transfer recovery and event routing.
Use presigned PUT for authorized direct upload, multipart for part retries, and ObjectCreated notifications for processing. Filter output away from input triggers.
Exam trap
CORS does not grant S3 authorization. A processing function can loop if its own output matches the same notification.
Keywords
- presigned PUT
- CORS
- multipart upload
- ObjectCreated
- input prefix
One sentence to remember
Separate upload authorization, browser access, transfer recovery and event routing.
1 media item5 rule steps5 scenarios6 flashcards