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

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

    Try this combination.

    const s3 = new AWS.S3({
      endpoint: 's3-ap-south-1.amazonaws.com',       // Bucket region
      accessKeyId: 'A-----------------U',
      secretAccessKey: 'k------ja----------------soGp',
      Bucket: 'bucket_name',
      useAccelerateEndpoint: true,
      signatureVersion: 'v4',
      region: 'ap-south-1'             // Bucket region
    });
    

提交回复
热议问题