as the example has `delimiter=/` the provided code doesn't work. here is my solution ``` var fullPath = request.url.replace(request.scheme+'://'+request.host, ''); var opts = {service: 's3', host: request.host, path: fullPath, region:'eu-west-1'}; var awsObj = aws4.sign(opts, {accessKeyId: variables.get("AWS_ACCESS_KEY_ID"), secretAccessKey: variables.get("AWS_SECRET_ACCESS_KEY")}); request.path = awsObj.path; for (var header in awsObj.headers) { request.headers[header] = awsObj.headers[header]; } ``` replace scheme and host. the rest of the URL will be path+params also, region is detected poorly with this implementation. i had to set it explicitly as i was getting error that `s3-eu-west-1` is not a valid region
as the example has
delimiter=/the provided code doesn't work.here is my solution
replace scheme and host. the rest of the URL will be path+params
also, region is detected poorly with this implementation. i had to set it explicitly as i was getting error that
s3-eu-west-1is not a valid region