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
Using vogels with a local DynamoDB without an internet connection? #143
Comments
For what it's worth I'm able to work with dynalite locally while offline just fine. |
vogels can be configured to work with DynamoDB local (our test suite runs against dynamdb local). var opts = { endpoint : 'http://localhost:8000', apiVersion: '2012-08-10' };
vogels.dynamoDriver(new AWS.DynamoDB(opts)); Have you tried connecting to a local instance like this with versus without an internet connection? |
@tielur Nice one for pointing out dynalite. That is MUCH better than DynamoDB Local! |
Someone could share information on how to have vogels working dynalite? Here is what I do to instanciate my DB server:
Here is what I tried to init vogels:
I have defined a model and try to create it in
But it only returned me the error:
Any hint will be greatly appreciated :) |
I have posted my question on stackoverflow: On Vogels iwth dynalite, Requested resource not found. Thanks |
Can you actually try out the suggestion of @ryanfitz? You are clearly missing the Also its not clear how do you define your schemas and tables. Take a look at this example. Also there are another examples which you may find usefull. The couse of this error is:
So maybe try to create the tables first... Like this example maybe... |
Actually, it didn't work either. But I fixed my issue: The problem seem to be that I created the table using aws-sdk-js I don't know why I cannot create a table a with aws-sdk and then use vogels only for feeding my table. If anyone has an idea, here is how I created my table:
and here is how I defined my model:
|
First of all do you know what that
But in the schema you define your The second thing is that when you create a model with:
you don't specify an ID for your new redord. How do you want to create a record without unique identifier (hash key)? Also you may try to add the rest of the properties to your aws table definition... Dude? Just execute: I suggest you to open a separate issue, but do your homework before that. |
Yes I know all that Dude... I was thinking that specifying a key as UUID generates a unique number identifier that increment automatically the key id when inserting a new item. Vogels document doesn't say if it is String or Number at the end. Or at least, I didn't find it Concerning the item creation, I think it is correct to create an item without unrequired properties. For the Table creation part, It is called only once using a separate node script. I'm mounting a mock env with random auto-generated fake data. I don't think having mentioned that I called it at every start. I began testing dynamoDB last week so sorry if my question has obvious answers. I never handled UUID before... Any way, I don't think that the error Thank you for your time and for pointing the defect in my implementation. I'll do better :) :) |
It is good that the problem is resolved. |
I'm trying to develop against a local DynamoDB instance (http://localhost:8000), but without an internet connection. I can interact with the local instance through the browser http://localhost:8000/console, but I can't get vogels to work against it. As soon as there's an internet connection all is fine. The DynamoDB documentation states that it's possible to use a local instance without an internet connection, but does / should vogels support it?
The text was updated successfully, but these errors were encountered: