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

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

    In Java I had to set a property

    System.setProperty(SDKGlobalConfiguration.ENFORCE_S3_SIGV4_SYSTEM_PROPERTY, "true")
    

    and add the region to the s3Client instance.

    s3Client.setRegion(Region.getRegion(Regions.EU_CENTRAL_1))
    

提交回复
热议问题