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.
Questions tagged [amazon-dynamodb-local]
93 questions
0
votes
0 answers
Boto3 timeout connecting to local dynamodb but can curl
I have been attempting to follow the various instructions and troubleshooting to get a docker container to connect to another docker container running local dynamodb via boto3. References/troubleshooting so far:
In compose, can just use automatic…

Hanshan
- 3,656
- 5
- 29
- 36
0
votes
0 answers
boto3 dynamodb connect to local or remote instances
To all,
I am a python beginner and I have a docker local docker environment of dynamoDB but I wanted to create a class that allows me to list tables or create tables for example on either my local docker dynamodb or aws dynamo db.
import…

weblogicGuy
- 15
- 5
0
votes
2 answers
How do I append a list to my DynamoDB table using Python?
I have an existing DynamoDB table, and I want to write some Python code to append an attribute (of type List) to the table. Here is what I tried:
users.put_item(
Item={
"new_attribute": []
}
)
But this didn't work. I looked…

Alex Yuwen
- 31
- 3
0
votes
1 answer
DynamoDB table seed works in cli but not AWS-SDK
I have a table that has more than 25 items and wrote a basic script to break them into sub arrays of 25 items each then loops thru that collection of sub arrays to run a batch write item command in the AWS DynamoDB Client. The issue I am getting is…

Ryan Carville
- 355
- 7
- 15
0
votes
1 answer
awscli doesn't consider global-secondary-indexes when validating attribute-definitions
I'm trying to initialize dynamodb table when creating a localstack container.
Consider following command:
awslocal dynamodb create-table \
--debug \
--table-name Journal \
--global-secondary-indexes 'IndexName=GetJournalRowsIndex,…

Artur
- 140
- 1
- 10
0
votes
1 answer
DynamoDB: Using putItem with empty strings failing
According to the docs here I should be able to put an item with one of my non-key attributes as an empty String.
I have primarily been using Kotlin but also have tested out in Java and I am unable to write an empty String.
I am seeing the following…

azr481
- 45
- 1
- 6
0
votes
0 answers
DynamoDB with Supertest (Intermittent failures)
Im testing a small api project with CRUD endpoints. I run all my tests using supertest to check my calls all work on local DynamoDB. The issue is, when I run these tests they randomly all pass or one fails. It's rarely the same one that fails but…

notElonMusk
- 314
- 1
- 4
- 21
0
votes
2 answers
yaml SAM local with dynamo db
I'm trying to create a set of lambda functions that depend on DynamoDB. I've written a valid SAM template like this:
---
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Resources:
Get:
Type:…

babaloo
- 435
- 5
- 24
0
votes
1 answer
Jest-dynamoDB connection gets refused inside of docker container
I have a suite of tests written in Jest for dynamoDB that use the dynamodb-local instance as explained here using this dependency. I use a custom-built Docker image which builds a container within which the tests are executed.
Here's the…

mobile_developer42
- 67
- 6
0
votes
2 answers
Using GetRemaining() in dynamodb c# not able to load the data faster?
I’m Not able to load data in dynamo DB using C#. we have used Scan and GetRemaining, which makes the process very slow. is there any alternative option to load a list of data faster from?
Table peopleTable = Table.LoadTable(client,…

sunera hanif
- 1
- 1
0
votes
1 answer
How to get DynamoDB from DynamoDB local creation
Trying to write integration test for my logic, using recommended way to launch dynamoDB local:
final String port = getAvailablePort();
this.server = ServerRunner.createServerFromCommandLineArgs(new String[] { "-inMemory",…

user273098
- 151
- 3
- 10
0
votes
1 answer
Could not able to insert properly if items crosses 1350+ in local dynamodb
I am using local docker setup for dynamodb. I could able to insert items when items are less it starts behaving wrong when data items goes beyond 1350 around.
table = dynamodb.create_table(
TableName='logevents',
KeySchema=[
…

Subhrajyoti Basak
- 13
- 2
0
votes
2 answers
DynamoDB Local throws Method Not Allowed via SDK
I'm trying to use DynamoDB Local. It works perfectly fine using the AWS CLI, but when I try to use it with the AWS SDK in Node, I keep getting a "Method Not Allowed" error. The same code works perfectly fine with the real DynamoDB, so I know it's…

brad
- 156
- 5
0
votes
1 answer
How to reset dynamodb local data for unit testing
using Jest, DynamoDB Local, I wanna reset database for each test so it doesn't have to be in specific order.
Is there any way to do that wisely?
beforeEach(() => {
resetDB()
})
it('create a data', () => {
})
it('remove the data', () =>…

Otani Shuzo
- 1,118
- 1
- 11
- 22
0
votes
1 answer
dynamodb client silently failing and then timing out
I'm trying to run tests against DynamoDB Local in CircleCI and they are silently failing and eventually timing out. There are no errors reported by the DocumentClient. What could be causing this issue?

redgeoff
- 3,163
- 1
- 25
- 39