RiakCS - AWS-CLI command works but Node.js API fails

Dattaraj Rao dattarajrao at yahoo.com
Sat Nov 28 09:13:07 EST 2015

Hello,I am trying to access a RiakCS data store. I can access it using following command in AWS-CLI:
$ aws s3 --endpoint-url https://my-riak-address.io cp my-local-file s3://service-instance-e689c062-dee6-45d7-90fe-39e63256915fHowever when I try connecting to same repository using Node JS and AWS-SDK bunlde - it does not connect. Says endpoint not exposed.
var AWS = require('aws-sdk');AWS.config.update({accessKeyId: 'mykey', secretAccessKey: 'mysecret'});var ep = new AWS.Endpoint('https://my-riak-address.io/service-instance-e689c062-dee6-45d7-90fe-39e63256915f');var s3 = new AWS.S3({endpoint: ep});
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20151128/f43727f3/attachment-0002.html>

More information about the riak-users mailing list