Troubleshooting
Problem
There could be multiple causes for getting S3_21 error code. One of the reason is the specification of an incorrect AWS region in the pipeline for the Amazon S3 bucket.
Symptom
When attempting to validate or start a pipeline that interacts with an Amazon S3 bucket (writing data to Amazon S3 destination), the following error message is encountered:
S3_21 - Unable to write object to Amazon S3, reason : com.amazonaws.services.s3.model.AmazonS3Exception: The authorization header is malformed; the region '<wrong-region-name>' is wrong; expecting '<correct-region-name>' (Service: Amazon S3; Status Code: 400; Error Code: AuthorizationHeaderMalformed; Request ID: XXXXXXXXXXXXXXXX; S3 Extended Request ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; Proxy: null), S3 Extended Request ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Resolving The Problem
To resolve this issue, Confirm the region in which the S3 bucket is located. Ensure that the region specified in the pipeline's configuration matches the region where the S3 bucket is hosted. In the Amazon S3 stage of the pipeline, navigate to the Region field and ensure that the correct region is selected.
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
15 March 2025
UID
ibm17186149