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
2
votes
1 answer
Serverless Offline & DynamoDB throws Local UnknownEndpoint: Inaccessible host: localhost at port 8000 Service may not be available in localhost region
I'm playin around with Serverless and I have no luck getting serverless-offline to work with serverless-dynamodb-local.
I have very minimal setup, it takes 3minutes to reproduce, I did it like this:
Generate a TS Serverless project like - sls…

Pauli
- 388
- 4
- 17
2
votes
0 answers
EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:8000/", facing an error while connecting local dynamodb
I am trying to establish a connection between the locally created lambda function and local dynamodb. I set up both lambda and dynamodb locally and tried to create table in the dynamodb but facing an error. Here is my script to create a table in…

Rehan CH
- 109
- 1
- 11
2
votes
1 answer
Why do I get "Unable to load AWS credentials" when using DynamoDB locally in Java?
I am writing a functional test case and connecting to a local DyanmoDB instance within it.
This is how I create the DynamoDB client:
private static final String table_name = "table-A";
private static String aws_region = "us-west-2";
private static…

N.Rajal
- 105
- 2
- 17
2
votes
0 answers
Updating creates duplicate records in dynamodb
I am using a docker image of dynamodb. Whenever i try to perform an update operation on the table, it creates a new record with the same primary key instead of updating the existing one. Once this is done, I can't delete the row or do anything on…

gorgcow
- 93
- 8
2
votes
3 answers
Delete a dynamodb table from local container using AWS Workbench
I'm trying to use DynamoDB locally and am using the container https://hub.docker.com/r/amazon/dynamodb-local combined with AWS Workbench (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/workbench.html).
I have successfully created a…

prime
- 2,004
- 3
- 28
- 45
2
votes
1 answer
How to run dynamodb-local in Docker without -inMemory flag
According to docs there are 2 flags that affects run of dynamodb-local
-inMemory -> makes all data to persist in RAM only, when service is terminated - all data gets deleted
-sharedDB -> makes all logins to be written to the same shared file
no…

Yitzchak
- 3,303
- 3
- 30
- 50
2
votes
2 answers
Is it possible that aws-sdk/dynamoose causes an SQLite syntax error on DynamoDB local?
Context:
Problem found while upgrading from Nodejs 6 to 12 and with that the project's dependencies.
Using dynamoose 2.3
Containerized application using docker-compose: backend and dynamodb instance only
Docker file for dynamodb:
FROM…

EDG956
- 797
- 8
- 23
2
votes
1 answer
AWS DynamoDB Local add global secondary index using awscli
Hello I try to execute the following command in order to add a Global Secondary Index to an existing table:
aws dynamodb update-table \
--region eu-west-1 \
--endpoint-url http://127.0.0.1:8000/ \
--table-name ssib_dev_assetsTable \
…

miorey
- 828
- 8
- 19
2
votes
2 answers
Serverless offline - Migration on local dynamoDb is not working
I'm working in a Serverless project and I'm having issues to run locally my application with dynamodb. It is not creating a data table thus not executing correctly the seed. What is wrong with my configurations?
start command: $ sls offline start…

user2919910
- 575
- 1
- 7
- 17
2
votes
1 answer
SAM Lambda python function not connecting to local dynamoDb in docker
I have installed dynamodb in a docker container and from the command line I am able to write and read records from it. However, when I try to connect to the database using Python3 I get an error.
Could not connect to the endpoint URL:…

user20358
- 14,182
- 36
- 114
- 186
2
votes
1 answer
AWS SAM Local + DynamoDB Local
I'm currently testing out AWS SAM with DynamoDB Local using Docker.
Here is the steps that I followed (mostly found in the internet)
Create new docker network using docker network create local-dev.
Run DynamoDB Local docker run -d -v…

eFeN
- 65
- 1
- 4
2
votes
1 answer
DynamoDBLocal error: package com.amazonaws.services.dynamodbv2.local.embedded does not exist
I am creating local app to create DynamoDBLocal and test against it.
I am using Spring Boot app with gradle on Mac OS X
However, while compiling, I get following error:
error: package com.amazonaws.services.dynamodbv2.local.embedded does not…

Mayoor
- 21
- 3
2
votes
0 answers
Cannot connect to DynamoDB local (Serverless Framework)
I'm trying to set up a local DynamoDB, for testing my lambda functions, in WSL. The serverless.yml file is like this:
service: my-service
provider:
name: aws
runtime: nodejs10.x
stage: dev
region: eu-west-1
environment:
STAGE:…

jmatamoros
- 514
- 1
- 5
- 14
2
votes
1 answer
Unable to execute HTTP request: Connect to localhost:8000 [localhost/127.0.0.1] failed: Connection refused (Connection refused)
I'm trying to install dynamodb locally for docker.
I've written the below code from here.
docker run -p 8000:8000 amazon/dynamodb-local -jar DynamoDBLocal.jar -sharedD
Then I can reach localhost:8000/shell
In my client java, I set the…

user11475921
- 31
- 1
- 4
2
votes
1 answer
Why doesn't DynamoDB local recognize -shareDB option?
I'm trying to start a DynamoDB Local Docker container with the -shareDb option but it failes with the message "Error while parsing options. Unrecognized option: -shareDb".
The docker image is from amazon/dynamodb-local and I'm starting using a…

JonathanSK
- 81
- 2
- 6