-
Notifications
You must be signed in to change notification settings - Fork 27
DynamoDB-Local support #10
Comments
@pewallin I made it work with dynamo local supplying a custom regions.xml to logstash with the follwing parameter the snippet that I added into the file is the following: <Region>
<Name>dynamodb</Name>
<Endpoint>
<ServiceName>dynamodb</ServiceName>
<Http>true</Http>
<Https>false</Https>
<Hostname>dynamodb</Hostname>
</Endpoint>
<Endpoint>
<ServiceName>streams.dynamodb</ServiceName>
<Http>true</Http>
<Https>false</Https>
<Hostname>dynamodb</Hostname>
</Endpoint>
</Region> NOTE: Change the You can now then configure the plugin as follows:
|
Thanks @marcosnils - that worked! |
@pewallin plz close? |
@marcosnils I think this merits at least a readme update before closing? Also, it looks like this repo is not what is currently published on Rubygems (which has newer versions) so I'm hesitant to do a PR. |
@pewallin Im not the repo owner or contributor so I can't take any actions. Regarding what's on RubyGems I'm the who published a custom version of the Gems there as I need them for something else. |
I followed all the steps you described and I get:
Any ideas? I think it's something wrog with the region, there's some ARN mismatch. |
are you sending the regions.xml file? |
Yes, I am, I followed the same steps as above, only in the config file I use the ip for the end point, and the table in dynamodb has the same region as the one defined in the regions (I cheched the table's ARN). The strangest thing is that if I provide an invalid table name I'm notified that the table name is invalid. The regions file is parsed, I've made a small exepriment and if I add the port to the hostname it won't be parsed anymore + an error is returned.
And my config:
|
@stefanvasco I'm not sure but I believe the endpoint might have something to do with the region / arn. Can't you use the same example as I posted before? |
Thx, I'll open a new issue, even with my amazon account I'm getting the same error. |
Hi, I'm facing the same issue but in a docker container.
My
My config :
Anyone has an idea ? |
Same issue for me; it works okay using a hostname as @marcosnils specified in the initial example (using "dynamodb" as the endpoint) - but of course that needs to mapped (to my host dynamodb ) inside docker (using add-host). As soon as I do this, I get this,
If I leave out the add-host statement, logstash starts, but of course can't resolve dynamodb as it has no entry in the hosts file in docker...... Can anyone help - seems to be impossibly hard to run this locally.... |
@mikebrules can you provide an example about how you're running the container and what do you get in the logs exactly? |
@marcosnils wow, thanks, quick! Sure... Here is my regions config
and my logstash input
because I now have to add "dynamodb" to my docker hosts, I do this...
and that throws this...
which ( I presume) mean it IS finding my dynamodb, but says no region found? I would rather just wire in the IP address in my regions file, but I get the same issue......must be something to do with the region my dynamo local is running? Thanks loads for the help... |
@mikebrules can you please show me the complete |
@marcosnils sure - thanks again for your help
Dockerfile
Note: I seem to have to use '-J' for the JAVA_OPTS |
More detail @marcosnils - I'm sure this is because the plugin can't find my regions file that I am creating. I've checked it is there by execing into the running container, and tried setting every conceivable ENV var as I start the container (JAVA_OPTS, LS_JAVA_OPTS, both with -J or -D args)
Still the same error -
Any ideas? Pulling my hair out? Thanks in advance? |
@mikebrules this is how I'm running y image (through compose)
Observations:
|
@marcosnils thanks for getting back, I'll check all that... |
@marcosnils many thanks - looking good! |
@marcosnils - just wanted to say thanks for all of the info in here. There isn't a ton of info about this on the web and reading through your posts ^^^ got me up and running 👍 |
@goldcaddy77 glad it helped out!. |
Seems like this plugin is not working with dynamodb-local? The region is being parsed from the endpoint which of course will not work with http://localhost:8000. I'm having trouble compiling the plugin; otherwise it looks like a fairly simple fix on line 174 in dynamodb.rb. Maybe allow a config option "dynamodb-local_region" or something similar?
The text was updated successfully, but these errors were encountered: