I'm trying to determine how to pass the proxy configuration to the @aws-sdk/s3-client library, not to be confused with the @aws-sdk/s3 library.
Typically, using any traditional libraries, you can use the following to set up the proxy as described by the documentation like so:
AWS.config.update({
httpOptions: {
agent: HttpsProxyAgent('http://proxy.com'),
},
});
However, with the s3-client, it looks like it has a S3ClientConfig as an argument to the S3Client constructor.
Documentation: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-s3/globals.html#s3clientconfig
Has any out there ever got this working?
In case your wondering, I'm being ask to use this s3-client library.
Thanks.