dokku / dokku-mongo

a mongo plugin for dokku
MIT License
174 stars 32 forks source link

InvalidRequest when calling PutObject operation: Region that requires Signature Version 4 #89

Closed peterpme closed 7 years ago

peterpme commented 7 years ago

Hey,

Thanks for this awesome library!

I've created an AWS bucket in US-EAST (Ohio) with AmazonS3FullAccess policy on user group but receiving this error when running:

mongo:backup db-main db-main

upload failed: - to s3://dokku-plw/mongo-db-backup.tgz An error occurred (InvalidRequest) when calling the PutObject operation: You are attempting to operate on a bucket in a region that requires Signature Version 4.  You can fix this issue by explicitly providing the correct region location using the --region argument, the AWS_DEFAULT_REGION environment variable, or the region variable in the AWS CLI configuration file.  You can get the bucket's location by running "aws s3api get-bucket-location --bucket BUCKET".
peterpme commented 7 years ago

All I had to do was read the docs :)