andrewrk / node-s3-client

high level amazon s3 client for node.js
MIT License
1k stars 303 forks source link

Unable to use the Endpoint object as per S3 docs #208

Closed psmod2 closed 6 years ago

psmod2 commented 6 years ago

Hello,

I have a specific endpoint host and port for my buckets.

I've found the Endpoint object in S3 https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Endpoint.html however where is this configuration placed, I tried in the createClient object however it didn't seem to work:

var client = s3.createClient({
    s3Options: {
        hostname: "111.111.111.1"
        port: "1111",
        accessKeyId: "xxxxxxx",
        secretAccessKey: "xxxxy",
    },
});

Do I have to create a seperate object, if so at where is linked with the client itself?

Any help would be appreciated.

psmod2 commented 6 years ago

Got it - had to use:

endpoint: "111.111.111.1:1111"

and also:

sslEnabled: false,
s3ForcePathStyle: true