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

前端 未结 20 1234
既然无缘
既然无缘 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 14:50

    Supernova answer for django/boto3/django-storages worked with me:

    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"

    just add them to your settings.py and change region code accordingly

    you can check aws regions from: enter link description here

提交回复
热议问题