Support for requester pays requests
There should be support for this feature in S3.putBucketRequestPayment. Is this what you are looking for, or is it not working for you?
No. Requester Pays buckets are buckets where a person who does getObject pays for it.
I made a simple patch which makes it work for me.
You are correct that getObject has no parameter to specify the 'x-amz-request-payer' header. That's something that can be easily added (I was writing this as you just did). In the meantime, you can also workaround this by adding the header to the request yourself:
var req = s3.getObject(params);
req.httpRequest.headers['x-amz-request-payer'] = 'requester';
req.on('complete', function (resp) { console.log(resp.data) });
req.send();
Aha, good, a workaround. :-) Thanks.
This was not yet fixed?
@mitar Requester pays buckets are now supported in the SDK. Thanks for reporting!
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.