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
1
vote
1 answer

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 trying to create a new table with 12 GSIs and no…
1
vote
0 answers

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 successfully and is running in the CodeBuild…
1
vote
0 answers

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. Below is the reference Code i am trying to achieve…
1
vote
1 answer

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 the recommended dependency from their…
Selindek
  • 3,269
  • 1
  • 18
  • 25
1
vote
1 answer

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 container: aws-dynamodb-local. On port 8000 Start the…
1
vote
0 answers

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 serverless-dynamodb-local plugin. The problem is…
1
vote
1 answer

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',) UseCase: i wanted to query on LSI on hash_key only,…
1
vote
0 answers

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 application is not sending to the local DynamoDB…
1
vote
1 answer

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", Item: { id: uuidv4(), username, …
1
vote
1 answer

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 caveats would be helpful (say, IAM, IaC, or indexing).
GaTechThomas
  • 5,421
  • 5
  • 43
  • 69
1
vote
1 answer

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 us-east-1 --stage local-beta --inMemory true --migrate…
1
vote
0 answers

Invalid directory for database creation on dynamodb start

I am getting Invalid directory for database creation. when I start serverless-dynamodb-local. Below is my local configuration dynamodb: stages: - test start: port: 8000 sharedDb: true dbPath: dynamodb-local Is there…
test
  • 133
  • 1
  • 8
1
vote
1 answer

How to point AWS-SDK DynamoDB to a serverless DynamoDB local

I am trying to write a script that will loop thru an array of items for a DynamoDB table and run a batch write command. My functionality is good, but I am having trouble with DynamoDB. Would be great if I could point my…
1
vote
0 answers

Localstack + Jest: DynamoDB throws ResourceNotFoundException on deleteTable for an existing table

I'm using localstack and awslocal to run the local AWS services inside a docker container. Localstack is configured with a docker-compose.yml file. Tests are written using Jest and AWS Node JS sdk for DynamoDB. 'use strict'; const { dbClient, db }…
1
vote
2 answers

update attributes in a dynamodb record

I am trying to update my existing record in my dynamodb table. Like below I have an Item in my table let params = { TableName: proces.env.dynamoDbTable, Item: { productId: "id", att1: val1, att2: val2 } } I want to…