I am getting this error to access S3 bucket. My region is mumbai.
boto.exception.S3ResponseError: S3ResponseError: 400 Bad Request
InvalidRequestThe authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.7BD86CC040523574I1zzUtAgjBS0dOUo/mP/Z7uei/l+f8YXEdlqeu1N+7mXrHV9IwYxWBLkx1E/y4DNm6QzPdyRihE=
Try by providing the host name corresponding to the S3 bucket region. For example:
from boto.s3.connection import S3Connection
conn = S3Connection(aws_access_key, aws_secret_key, host='s3.us-east- 2.amazonaws.com')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With