Questions tagged [amazon-dynamodb-local]

This tag is for Amazon DynamoDB local, which is an official implementation of DynamoDB meant to run locally, via Java app or Docker. It exists solely for purposes of development and functional testing before you deploy your code into AWS against a full-fledged DynamoDB table.

93 questions
63
votes
21 answers

Export data from DynamoDB

Is it possible to export data from DynamoDB table in some format? The concrete use case is that I want to export data from my production dynamodb database and import that data into my local dynamodb instance so my application can work with local…
17
votes
6 answers

Dynamodb local setup on M1 apple silicon mac

I did a local setup of dynamodb using https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html I am able to start the instance using the following command java -Djava.library.path=./DynamoDBLocal_lib…
Ahsan Ejaz
  • 173
  • 1
  • 1
  • 5
16
votes
4 answers

dynamodb local: ERROR StatusLogger Log4j2 could not find a logging implementation

This is the first time that this issue has occurred to me, I have used DynamoDB local on Linux and Mac and most of the time it worked fine, and now I'm on a different Mac machine, it just throws an error. The error message that I got was: ERROR…
yakovmeister
  • 193
  • 1
  • 8
9
votes
2 answers

Cannot connect to local DynamoDB

I cannot connect to DynamoDB that is running local using cli. aws dynamodb list-tables --endpoint-url http://localhost:8000 Could not connect to the endpoint URL: "http://localhost:8000/" This doesn't work either: aws dynamodb list-tables…
6
votes
1 answer

Limit method in QueryEnhancedRequest for DynamoDB Java v2 sdk doesn't limit as expected

I'm using the v2 aws DynamoDV Java sdk, and I want to limit the number of results that are returned when querying by the partition key (code snippet below), but the code below returns the full set of items back. The java docs say "Note:The limit…
5
votes
0 answers

How to integrate Dynamodb Local into AWS Cloud Development Kit

How does one integrate DynamoDB Local into the development process when using aws-cdk? For example, the following app (using the "sample app" template) works, but how would one run sam local invoke and point to a…
TDB
  • 367
  • 1
  • 3
  • 15
5
votes
1 answer

Update specific attributes with DynamoDBMapper in java

I want to update only the specific attributes of the item using DynamoDBMapper. For example, I have a User table with attributes viz., id, name, address. @Data @DynamoDBTable(tableName = "Users") public class User { @DynamoDBHashKey …
shwetap
  • 621
  • 1
  • 6
  • 14
4
votes
3 answers

Delete a table from NoSQL Workbench for local dynamodb

I added two tables to my local dynamodb connection and couldn't seem to find a way to delete them. I would like to delete "CoreTable" and "CoreTable-local" as shown in the figure below. Thanks!
4
votes
3 answers

DynamoDB NoSQL Workbench test table not visible

I'm new on DynamoDB and using NoSQL Workbench to learn. There is a new "Example" table in "Data modeler" section. I made a new LOCAL connection under "Operation builder" section to work on/test the "Example" table. Connection was created…
user215422
  • 43
  • 5
4
votes
2 answers

How to create DynamoDB (Local) tables in Docker Container

I currently have Dynamodb-local running in a Docker container using the amazon/dynamodb-local image. The container starts up and I can manually create the necessary tables via AWS CLI. At this point, however, I need to have the tables created when…
3
votes
2 answers

how to run aws cli command silently to create a dynamodb table

I am creating a shell script that will create a couple of dynamodb tables locally among other things. This is the create table AWS CLI command I am using: aws dynamodb create-table --cli-input-json file://table-user.json --endpoint-url…
jayant
  • 366
  • 4
  • 14
3
votes
0 answers

Dynamodb local connection refused with Java

I'm trying to connect dynamodb with existing java project, but I found the error below: com.amazonaws.SdkClientException: Unable to execute HTTP request: Connect to localhost:9000 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed:…
3
votes
3 answers

Change amazon/dynamodb-local Port

How can I change the port dynamodb starts on through the Amazon Docker image? According to this answer, the -port option can be used when executing the dynamodb java file. However, when running the docker image with this command: docker run -p…
Dylan Landry
  • 1,150
  • 11
  • 27
2
votes
2 answers

An error occurred (426) when calling the ListTables operation: Upgrade Required

At work we use the amazon/dynamodb-local docker for local DynamoDb. However when I run aws dynamodb list-tables --endpoint-url http://localhost:8000 --region local I get: An error occurred (426) when calling the ListTables operation: Upgrade…
Thomas
  • 8,306
  • 8
  • 53
  • 92
2
votes
1 answer

Extremely slow batch_write operations with boto3 and dynamodb-local

I am trying to load some GBs of data stored locally in 6 txt files inside some tables in a dockerized local Dynamodb instance using Python3 and the boto3 library. The problem is the process speed, the estimated time for loading a single file's data…
1
2 3 4 5 6 7