scruffyfox / bitrise-amazon-s3-uploader

Bitrise Step to Deploy a file to Amazon S3
MIT License
1 stars 6 forks source link

An error occurred (SignatureDoesNotMatch) when calling the CreateMultipartUpload operation: The request signature we calculated does not match the signature you provided. Check your key and signing method. #9

Open jsiefers opened 3 months ago

jsiefers commented 3 months ago

When I add this step to upload an APK to my S3 bucket, the logs show this error. The bucket name, access key, secret access key and region are all correct. The input file is the $BITRISE_APK_PATH variable, which has been built in previous steps.

Build step log (bucket name, path name and apk file name redacted)

+------------------------------------------------------------------------------+

| (1) Amazon S3 File uploader                                                  |
+------------------------------------------------------------------------------+
| id: amazon-s3-uploader                                                       |
| version: 1.0.1                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: bash                                                                |
| time: 2024-06-13T13:29:26Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
Start installing (awscli) with apt-get
 * [OK] Step dependency (aws) installed, available.
Configs:
  * file_path: /bitrise/deploy/my_app_name.apk
  * app_slug: e2f4cfe5-0b61-497e-abeb-8c00086585c7
  * build_slug: 99406d8a-40ae-4621-b6f1-2b5b7394eb6d
  * aws_access_key: ***
  * aws_secret_key: ***
  * bucket_name: my-bucket-name
  * bucket_region: eu-west-1
  * path_in_bucket: path_name
  * file_access_level: public_read
Uploading file...
upload failed: ../deploy/my_app_name.apk to s3://my-bucket-name/path_name/my_app_name.apk An error occurred (SignatureDoesNotMatch) when calling the CreateMultipartUpload operation: The request signature we calculated does not match the signature you provided. Check your key and signing method.
Failed to upload file