-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connecting from Browser SDK #4
Comments
It might be - I'm a little rusty on the SDK itself, but it seems that it's the one complaining, not kinesalite itself, so it's probably just a matter of supplying some credentials and region. What happens if you do: var kinesis = new AWS.Kinesis({
endpoint: new AWS.Endpoint('https://127.0.0.1:4567'),
region: 'us-east-1',
accessKeyId: 'akid',
secretAccessKey: 'secret',
}) Or: AWS.config.update({region: 'us-east-1', accessKeyId: 'akid', secretAccessKey: 'secret'})
var kinesis = new AWS.Kinesis({endpoint: new AWS.Endpoint('https://127.0.0.1:4567')}) |
Hmmm, that's a good point. I think adding headers is the right way to go, but might need some playing around. I don't have much time in the next few days unfortunately, but I'll be on a place Monday, so will have plenty of time to look into it then (and I'll merge PR #3 in, or some variant of it) |
Super, thanks @mhart. Much appreciated. Trying to get my local test env up and running and emulating Kinesis is the final piece of the puzzle! Bit bemused that AWS haven't released something like this (as they did with DynamoDBLocal).... |
@mhart - did you have a chance to take a look at this? |
Hey, sorry for the delay, just merged #3 and will look into the CORS stuff now |
Fixed in v0.6.0 |
(oh, and thanks for filing the issue!) |
Brilliant, thanks @mhart - will try it out a little later. Going to be really helpful! |
Well... I'm sure it will be as soon as I've actually finished implementing |
Selfishly, I'm only interested in |
Oh awesome, well you should be covered then 👍 |
Just to update from a question posed at #17 – you no longer need an explicit var kinesis = new AWS.Kinesis({endpoint: 'http://localhost:4567'}) |
I'm hoping to use Kinesalite to test my web app locally (using the AWS JS SDK, I post data to Kinesis from the browser).
I've started Kinesalite using
kinesalite 4567
in my terminal and in my browser config I have:But the SDK of course complains about missing credentials and region settings. Is what I'm trying to achieve possible?
Thanks
The text was updated successfully, but these errors were encountered: