I have an S3 bucket that I back up to that's in the ca-central-1 AWS region, and it won't back up, and I get this error, because the library assumes the us-east-1 AWS region:
User warning: S3::putObject(): [AuthorizationHeaderMalformed] The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'ca-central-1' in S3::__triggerError() (line 440 of /var/www/b/libraries/amazon-s3-php-class/S3.php).
That error is from the S3 library, but I got around it by hacking the module and hard-coding it:
I have an S3 bucket that I back up to that's in the
ca-central-1
AWS region, and it won't back up, and I get this error, because the library assumes theus-east-1
AWS region:That error is from the S3 library, but I got around it by hacking the module and hard-coding it:
https://www.drupal.org/project/backup_migrate/issues/3027843#comment-13236642 has a patch for the D8 version of the module that seems to add a region field, which is what I'd ultimately prefer.