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

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

    For people using boto3 (Python SDK) use the below code

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

提交回复
热议问题