The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256

前端 未结 20 1229
既然无缘
既然无缘 2020-11-22 14:19

I get an error AWS::S3::Errors::InvalidRequest The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256. when I try upload fi

20条回答
  •  失恋的感觉
    2020-11-22 15:06

    I have been using Django, and I had to add these extra config variables to make this work. (in addition to settings mentioned in https://simpleisbetterthancomplex.com/tutorial/2017/08/01/how-to-setup-amazon-s3-in-a-django-project.html).

    AWS_S3_REGION_NAME = "ap-south-1"
    

    Or previous to boto3 version 1.4.4:

    AWS_S3_REGION_NAME = "ap-south-1"
    
    AWS_S3_SIGNATURE_VERSION = "s3v4"
    

提交回复
热议问题