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

前端 未结 20 1658
既然无缘
既然无缘 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:53

    For Boto3 , use this code.

    import boto3
    from botocore.client import Config
    
    
    s3 = boto3.resource('s3',
            aws_access_key_id='xxxxxx',
            aws_secret_access_key='xxxxxx',
            region_name='us-south-1',
            config=Config(signature_version='s3v4')
            )
    

提交回复
热议问题