eeshugerman / postgres-backup-s3

A handy Docker container to periodically backup PostgreSQL to S3
MIT License
485 stars 167 forks source link

An error occurred (SignatureDoesNotMatch) when calling the PutObject operation #11

Closed SupaMario123 closed 2 years ago

SupaMario123 commented 2 years ago

Hello,

thank you for providing this cool repo! I am using this cool repo in my docker-compose.yml. Unfortunately i get the following error:

2022/02/11 12:16:39 112: upload failed: ./db.dump to s3://MARIOS_S3_BUCKET/backup/DB_NAME_2022-02-11T12:16:17.dump An error occurred (SignatureDoesNotMatch) when calling the PutObject operation: The request signature we calculated does not match the signature you provided. Check your key and signing method.

I tested my credentials with my local aws cli and it was able to sync assets into the same bucket.

Do you have any idea why i get this error? Thank you a lot!

SupaMario123 commented 2 years ago

Sorry for the threat. My problem was on AWS site. The IAM user i used was only allowed to put objects into other (specific) buckets.