Closed scaleupcto closed 8 years ago
I think this is an error being thrown by the SDK, not kinesalite, no?
If you do new AWS.Kinesis({endpoint: 'http://localhost:4567', region: 'us-east-1'})
and it works, then I'll update the README. It may just work on my machine because I have a region already saved in ~/.aws/config
Not sure if it's required (seems like it is) but the listStreams documentation suggests the signature is params, callback
, not just callback
.
@evansolomon I doubt it – most SDK functions use a default set of params if you don't provide them.
Basically, @robotrobot – if you're using any of the AWS SDKs, you need to configure them before you make any calls, there's more info on that here: http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html
@mhart the region is required, this worked for me:
{endpoint: 'http://localhost:4567', region: 'eu-west-1'}
I have renamed the issue to reflect the bug with the docs ;-)
Quick PR on docs: https://github.com/mhart/kinesalite/pull/23
Thanks for the library, really useful for our dev environments when working with kinesis.
@robotrobot the region is only necessary if you haven't setup your AWS config as the docs describe. Unless you have a bunch of different services in different regions (which is not typically the default), then it's definitely more work to be setting the region on a per-service basis.
I'll update the README to link to the AWS docs in case people haven't seen them.
Thanks for the issue and PR!
Example code:
Console output:
I've read in the closed issues about similar people having the same issue but it seems I am following your example and the Amazon SDK here (@2.2.9)