I have searched on the web for over two days now, and probably have looked through most of the online documented scenarios and workarounds, but nothing worked for me so far.
I had the same error in nodejs. But adding signatureVersion in s3 constructor helped me:
signatureVersion
const s3 = new AWS.S3({ apiVersion: '2006-03-01', signatureVersion: 'v4', });