Problem Description: Ingestion job from Oracle database to Amazon S3 bucket fails with the below error in Enterprise Cloud Bridge.


Caused by: com.amazonaws.services.s3.model.AmazonS3Exception: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'us-west-2' (Service: Amazon S3; Status Code: 400; Error Code: AuthorizationHeaderMalformed; Request ID: 64C5234900B6A261; S3 Extended Request ID: VPX9K8r/t+joIC4YIE4dLVNiOcjNQPxX1iTLHLujWf76YdUWtoPNsYXLvT2CmeVRz3uVLzbMomg=)


Cause: This issue occurs if the S3 bucket provided in the ECB Agent configuration is moved to some other region. You would see the message with the expected region in the ecb.log file located in $ECB_HOME/logs directory.


Solution: 


a)Go to $ECB_HOME/conf directory, open the the ecb.properties file and change the parameter s3.bucket.region to us-west-2(in this particular case).



b) Check if the aws_access_key_id and aws_secret_access_key were also changed, if that is the case please change them as well in the ecb.properties file and then restart the ECB Agent by performing the below steps.


  • Stop the agent process using the following command: bash $ECB_HOME/bin/stop.sh
  • Start the agent process using the following command:$ECB_HOME/bin/start.sh


Applicable ECB Versions:

2.7.0.1-emr