Questions tagged [dynamo-local]

Amazon's DynamoDB Local test tool. DynamoDB Local is a client-side database that supports the complete DynamoDB API, but doesn’t manipulate any tables or data in DynamoDB itself.

129 questions
141
votes
4 answers

Number of attributes in key schema must match the number of attributes defined in attribute definitions

I’m trying to create a simple table using DynamoDB JavaScript shell and I’m getting this exception: { "message": "The number of attributes in key schema must match the number of attributes defined in attribute definitions.", "code":…
NAbbas
  • 1,433
  • 2
  • 8
  • 6
43
votes
4 answers

Localhost Endpoint to DynamoDB Local with Boto3

Although Amazon provides documentation regarding how to connect to dynamoDB local with Java, PHP and .Net, there is no description of how to connect to localhost:8000 using Python. Existing documentation on the web points to the use of the…
R J
  • 4,157
  • 2
  • 17
  • 27
39
votes
2 answers

Dynamo Local from Node-aws: all operations fail "Cannot do operations on a non-existent table"

I have a local dynamo-db running. I have set up my tables using the JavaScript console and they list OK from there. I can also put and get items to my tables from the JavaScript console: var params = { TableName:"environmentId", Item: {…
Rog
  • 16,650
  • 9
  • 48
  • 73
34
votes
2 answers

Error InvalidParameterType: Expected params.Item['pid'] to be a structure in DynamoDB

Note: all these are happening on the local instance of DynamoDB. This is the code that I've used to create a table from the DynamoDB Shell: var params = { TableName: "TABLE-NAME", KeySchema: [ { AttributeName: "pid", …
rohithpr
  • 4,818
  • 2
  • 26
  • 54
19
votes
1 answer

Stream support for local dynamodb?

I can't seem to get stream support working in dynamo db local, are they supported? The only indication I could find that they are, is the very last bullet point in…
jschr
  • 1,726
  • 1
  • 15
  • 21
14
votes
2 answers

Amazon DynamoDB Local - unknown error, exception or failure

I have to test an application which relies heavily on Amazon's DynamoDB. I want the tests to be able to be run separately, which is why I opted for DynamoDB Local .jar. I am aware of the recent update, making us able to run this without an external…
13
votes
2 answers

Dynamodb- Adding non key attributes

I want to insert data into dynamodb local. However, I have only one key attribute and multiple non-key attributes. { 'id':'99876983ydbhdu3739', 'category':'Spa', 'latitude':'33.498', 'longitude':'32.332', 'name':'Studio' } I…
13
votes
6 answers

Run Dynamodb local as part of a Gradle Java project

I am trying to run DynamoDB local for testing purposes. I followed the steps amazon provides for setting it up and running the jar by itself works fine (link to amazon's tutorial Here). However, the tutorial doesn't go over running the jar within…
OrwellHindenberg
  • 4,731
  • 7
  • 34
  • 54
10
votes
2 answers

What is a valid dynamodb key-condition-expression for the cli

Could somebody please tell me what a valid key condition expression would be. I am trying to run a query on a simple table called MyKeyTable. It has two "columns," namely Id and AnotherNumberThatICareAbout which is of type Long. I would like to see…
Mark Dickinson
  • 6,263
  • 3
  • 25
  • 41
9
votes
2 answers

dynamo db local shell doesn't list tables using docker image

I am using docker enabled dynamoDB local as mentioned here and following is my JS code: AWS.config.update({ region: 'sas', endpoint: 'http://docker.for.mac.host.internal:8000' //'http://localhost:8000' }); and create table function …
8
votes
1 answer

DynamoDB Local: Streams.getRecords returns TrimmedDataAccessException

I'm using DynamoDB local to run integration tests from nodejs (Javascript SDK). When I call getRecords I'm getting "TrimmedDataAccessException". If I run the same code against DynamoDB in AWS (not local) it works fine. Here's the steps: Run…
Mark J Miller
  • 4,181
  • 3
  • 36
  • 68
7
votes
2 answers

"brew install dynamodb-local" causes "No formulae found in taps"

Full output: Error: No available formula with the name "dynamodb-local" ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching taps... Error: No formulae found in taps. Homebrew version 1.1.10 OS…
stackoverflower
  • 3,177
  • 7
  • 42
  • 59
6
votes
2 answers

The IN operator is provided with too many operands; number of operands: 119 dynamodb

Try to use IN operation in dynamodb but get following error. Could anyone help me with alternative solution ? var params = { TableName : "table_name", FilterExpression : "id IN ("+Object.keys(profileIdObject).toString()+…
anil tako
  • 139
  • 7
5
votes
3 answers

How to use dynamoDb locally with lambda

I think this is possible? I have a lambda and api gateway defined in a sam template. I use sam-local to start that up. Within my lambda I would like to connect to my local dynamoDB but the lambda keeps timing out. Code looks like: let AWS =…
user1584120
  • 979
  • 1
  • 14
  • 30
5
votes
3 answers

updating a JSON array in AWS dynamoDB

My document looks like this: { "data": { "eventId": "20161029125458-df-d", "name": "first", "purpose": "test", "location": "yokohama", "dateArray": [], "attendees": [ { "attendeeId":…
1
2 3
8 9