batch-ops-examples-reports
Amazon S3 Batch Operations Completion Report Examples
When you create an Amazon S3 batch operations job, you can request a completion report for all tasks or just for failed tasks. As long as at least one task has been invoked successfully, Amazon S3 Batch Operations generates a report for jobs that have completed, failed, or have been cancelled.
The completion report contains additional information for each task, including the object key name and version, status, error codes, and descriptions of any errors. The description of errors for each failed task can be used to diagnose issues during job creation such as permissions.
Example Top-Level Manifest Result File
The top-level manifest.json
file contains the locations of each succeeded report and (if the job had any failures) the location of failed reports, as shown in the following example.
Example Failed Tasks Reports
Failed tasks reports contain the Bucket
, Key
, VersionId
, TaskStatus
, ErrorCode
, HTTPStatusCode
, and ResultMessage
for all failed tasks.
The following example report shows a case in which the AWS Lambda function timed out, causing failures to exceed the failure threshold. It was then marked as a PermanentFailure
.
Example Succeeded Tasks Report
Succeeded tasks reports contain the Bucket
, Key
, VersionId
, TaskStatus
, ErrorCode
, HTTPStatusCode
, and ResultMessage
for the completed tasks.
In the following example, the Lambda function successfully copied the Amazon S3 object to another bucket. The returned Amazon S3 response is passed back to Amazon S3 batch operations and is then written into the final completion report.