97 questions
0
votes
1
answer
143
views
How do I download a specific version of DynamoDB Local?
I want to download a specific version of DynamoDB Local in a dockerfile so my build doesn't change without my knowledge.
I can download the latest version using this url:
https://s3.us-west-2....
0
votes
1
answer
242
views
Localstack DynamoDB : PutItem operation exceeded maximum number of attempts
I set up a DynamoDB table on a Kubernetes pod using LocalStack, which is exposed via a Kubernetes service. I'm trying to make a PutItem request to this table using a service configured with the ...
0
votes
1
answer
60
views
Unable to create a GSI on dynamodb from aws cli on local
I am trying to add a GSI to an existing table on dynamo DB on local.
I downloaded the last version(2.5.1) and run ti with:
`java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -...
1
vote
0
answers
152
views
Local lambda unable to connect to local DynamoDb
I have a golang lambda (using https://github.com/aws/aws-sdk-go-v2) running inside an amazon al2023 docker container. I also have an amazon/dynamodb-local running as well. I can curl dynamo and run ...
0
votes
0
answers
50
views
Why is LoadAsync returning incorrect data from DynamoDB?
I'm trying to create a Dictionary app API using AWS that can Load a dictionary entry from DynamoDB.
The problem is that when I try to GET a dictionary entry from the DB using LoadAsync, all of the ...
0
votes
1
answer
107
views
jest-dynamodb not running on Gitlab CI with error connect ECONNREFUSED ::1:8000
I want to implement tests using jest-dynamodb.
It works locally on my machine.
However when I want to run the tests on Gitlab CI as part of our CI/CD pipeline, it doesn't work.
This error message ...
1
vote
1
answer
140
views
Passing query params to aws lambda function return wrong results in postman
I am just starting with aws lambda functions with serverless framework. I am trying to run lambda functions locally using dynamodb-local and serverless-offline.
Problem:
I am trying to pass query ...
-1
votes
1
answer
777
views
How to use pagination in dynamodb in boto3 using the SCAN method?
I'm trying to use 'LastEvaluatedKey' with a scan method in dynamo, but I'm not able to pull data from other pages, just one.
I also asked to print the value of 'LastEvaluatedKey' and the values ...
0
votes
1
answer
60
views
Query condition missed key schema element(Service: DynamoDb
public class DynamoDBExample {
public static void main(String[] args) {
cred Cred = new cred();
var akey = Cred.getkey();
var aid = Cred.getid();
var region = ...
1
vote
1
answer
5k
views
Create DynamoDB table in Docker Compose
I'm using Docker Compose for testing to replicate my AWS infrastructure which uses CloudFormation. My CloudFormation template create a FooBars DynamoDB table and I want to do the same for my Docker ...
1
vote
1
answer
494
views
Create DynamoDB tables locally from SAM Template yaml file
How can I create tables a Dynamo DB locally using the same template.yaml file with AWS::Serverless-2016-10-31 definition for SAM/Cloud Formation that I intent to use for production?
DynamoDB is ...
1
vote
1
answer
452
views
How do I create several GSIs in DynamoDB Local?
I have been using DynamoDB Local (currently 1.21.0) for testing my Java application using the v2 Enhanced Client for a long time, and I have used both GSIs and LSIs successfully. However, I am now ...
2
votes
2
answers
434
views
ReadTimeout trying to connect to dynamodb-local in CodeBuild
I am trying to execute pytests that use dynamodb-local docker container in CodeBuild.
I figured out how to run docker in CodeBuild by setting Privileged mode to True.
The docker container gets built ...
1
vote
0
answers
186
views
DynamoDb dax connection issue hadle exception in Node JS
How we can handle exception getting from Dynamo Db DAX client in nodejs.I am using amazon-dax-client library.Also I want to redirect my request to Dynamo Db client if in case DAX Connection fails.
...
2
votes
2
answers
380
views
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 ...
0
votes
1
answer
367
views
DynamoDB local behaving erratically
This is a very strange situation that's driving me nuts, and I would really appreciate some help here.
I am using CDK to define the DynamoDB table and associated indices. To test them locally, I ...
0
votes
1
answer
588
views
One or more parameter values were invalid: ComparisonOperator IN is not valid for SS AttributeValue type
I have a hashkey (DeptId) and rangekey(OrgId) in my dynamodb table. I can have my one department assigned to multiple Orgs. I want to get first 1000 records filtering the hashkey (DeptId) and another ...
0
votes
1
answer
493
views
AWS SAM and DynamoDB Local
I want to create a API endpoint in Node.js that lists the table names in DynamoDB. I have created a simple table locally and confirmed the table exists with the command
aws dynamodb list-tables --...
2
votes
1
answer
627
views
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 ...
0
votes
1
answer
87
views
Dynamodb insertion efficiency depending on the type of the input + impact on the pricing?
I am doing some tests with dynamodb in local and I have seen a behaviour that I can't explain that leads to a particular question. For the context, I was doing my tests with the nodejs SDK V3 using ...
1
vote
1
answer
450
views
AWS DynamoDbLocal v.1.19.0 is broken
It seems Amazon released a new version for DynamoDbLocal today (10/08/2022) with an empty jar file into thir specific repository. https://s3-us-west-2.amazonaws.com/dynamodb-local/release
If you use ...
1
vote
1
answer
2k
views
How can I get a list of partition keys from a DynamoDB table?
I am using java (dynamodb mapper) to make CRUD operations on a DynamoDB table with composite primary key (partition key and sort key).
I would like to make modifications to attributes partion-by-...
1
vote
1
answer
1k
views
Unable to enable Kinesis Data Stream as destination stream for DynamoDB in local
I have a project in which I have to capture the DynamoDB table change events using the Kinesis Data Streams.
Here are the sequence of operations that I am performing on my local:
Start the DDB ...
1
vote
0
answers
441
views
Serverless create dynamodb table locally only
I am writing a serverless application. It uses an already created dynamodb table and hence configured properly in serverless.yml file. Now, I want to run mock test locally using serverless-offline and ...
5
votes
3
answers
5k
views
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 ...
3
votes
1
answer
4k
views
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:
...
1
vote
1
answer
1k
views
PynamoDB Error for Local Secondary Index: ValueError('Table table_4 has no index: key1_index',)
I am new to pynamodb and I'm trying to query on LSI (already defined in dynamodb main table) and getting the following Exception.
'exception': ValueError('Table table_4 has no index: key1_index',)
...
2
votes
0
answers
993
views
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 ...
-4
votes
1
answer
323
views
My AWS CLI is not connecting to the localhost
I am trying to set up DynamoDB on a local machine but didn't get progress. I have followed various tutorials even Amazon docs but didn't recognize where I am doing wrong.
Image is here
Please guide me ...
3
votes
1
answer
3k
views
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";
...
0
votes
1
answer
111
views
Is DynamoDB Version Agnostic
I am new to DynamoDB and trying to learn, while going through the docs I got a doubt whether DynamoDB is version agnostic or not also I want to know wether it is backwards compatible or not?
In ...
0
votes
1
answer
1k
views
Automating dynamodb scripts
Like we used to do with rdbms sql scripts. I wanted to do a similar thing with my dynamodb table.
Currently its very difficult to track changes from environment to environment(dev - qa -prod). We are ...
3
votes
0
answers
335
views
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 ...
2
votes
0
answers
2k
views
DynamoDB and NodeJS local tables are not showing up in the DynamoDB admin
I am building a Node JS application. For the database, I am using AWS DynamoDB. What I am doing now is that I installed the DynamoDB locally and use the local version instead. But it seems that my ...
0
votes
1
answer
300
views
Is it possible to take DynamoDB Tables in one go based on a Tag Value?
Is it possible to take DynamoDB Tables in one go based on a Tag Value ?
I have about 30 tables that needs to be backedup . I have created a Tag called " Backup " and assigned a value " ...
0
votes
1
answer
818
views
DynamoDB Nodejs ConditionalExpresion attribute_exists - Error in validation
i am programming in nodejs and i am trying to make an update request in dynamoDB that should execute only if a conditional expression validate to true. For that, I check if in the request body object (...
1
vote
1
answer
2k
views
how to check if username or email exist in dynamoDB using node js express?
I am using dynamoDB with a node js express project, in which username and email address both shlould be unique, tried like below but didn't work:
const params = {
TableName: "users",
...
0
votes
0
answers
263
views
dynamodb Local, duplicate key
I'm using dynamodb Local. I'm trying to assign two addresses to one person but I'm getting a "Duplicate Key" error.
I want to add more countries and more addresses for one single person. but ...
19
votes
6
answers
16k
views
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 ...
0
votes
1
answer
3k
views
Serverless offline + DynamoDb local issue
I've been playing with serverless offline and dynamodb local lately.
When I've used websockets - things worked well.
Then, I've decided to change protocol to http. Don't know how this can be related, ...
1
vote
1
answer
163
views
AWS DynamoDB-local parity with the real thing
How close is dynamodb-local to being the same thing as the AWS cloud version?
I'm primarily looking for a comparison on the interface(s) and functionality used by applications, though any other ...
0
votes
0
answers
758
views
Testing a container against DynamoDB-Local
I wanted to test a container locally before pushing it to aws ecs.
I ran unit tests against a docker-compose stack including a dynamodb-local container using a Go (aws-sdk-go-v2) endpoint resolver ...
0
votes
1
answer
306
views
docker image to build another image
Hi I need to dockerize a system. the way I have to do this like below
steps:
up dynamodb local instance ( just for up ).
run a custom script to create tables ( have to go through this to create the ...
2
votes
3
answers
2k
views
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/...
1
vote
1
answer
2k
views
AWS Dynamodb Local fails to start: UnknownError: Not Found: DynamoDB - Error - Unknown Error
Goal
I am trying to start up Dynamodb local using the following command
yarn start:beta
Which calls this script
source ./scripts/prod-assumerole.sh && SLS_DEBUG=* sls offline start --region ...
0
votes
0
answers
744
views
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/...
5
votes
2
answers
2k
views
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 ...
5
votes
0
answers
616
views
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 ...
16
votes
4
answers
4k
views
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 ...
2
votes
1
answer
2k
views
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 ...