I contacted AWS Support to help resolve an issue with Amazon Simple Storage Service (Amazon S3). I want to provide information to help them troubleshoot the issue.
Resolution
Get the Amazon S3 request ID pairs from the HTTP headers and verbose logs. For more information about how to retrieve Amazon S3 request ID pairs, see Getting Amazon S3 request IDs for AWS Support.
The names that describe each half of an Amazon S3 request ID pair depend on how you retrieve the request ID pairs. The following table lists three methods to retrieve request ID pairs, and the name for each value in the pair:
| Access method | First name in pair | Second name in pair |
|---|
| HTTP response header | x-amz-request-id | x-amz-id-2 |
| HTTP response body (returned on errors only) | RequestId | HostId |
| AWS SDK request | AWS Request ID | Amazon S3 Extended Request ID |
The following example shows an Amazon S3 request ID pair in an HTTP request header:
x-amz-request-id: 79104EXAMPLEB723
x-amz-id-2: IOWQ4fDEXAMPLEQM+ey7N9WgVhSnQ6JEXAMPLEZb7hSQDASK+Jd1vEXAMPLEa3Km=
Important: Provide both values of an Amazon S3 request ID pair when you respond to a request by AWS Support.
For information about how to use AWS CloudTrail data event logging to retrieve request ID pairs, see Logging Amazon S3 API calls using AWS CloudTrail. CloudTrail data event logging for Amazon S3 objects retrieves both request ID and extended request ID data.
Related information
Response logging in AWS Tools for Windows PowerShell
Tutorial: Log Amazon S3 object-level operations using Amazon EventBridge