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
0
votes
1 answer

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 installed cdklocal and DynamoDB local using…
LNI
  • 2,935
  • 2
  • 21
  • 25
0
votes
1 answer

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 column called Status which can have values like…
user007
  • 1,504
  • 2
  • 18
  • 51
0
votes
1 answer

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 --endpoint-url http://host.docker.internal:8000 { …
0
votes
0 answers

UnknownEndpoint Inaccessible host: 'localhost' at port '8000' with sam node.js

AWS.config.update({ accessKeyId: 'a', secretAccessKey: 'a', region: "us-east-1", endpoint: "http://dynamodb-local:8000" // endpoint: "http://localhost:8000" // endpoint: "http://docker.for.windows.localhost:8000" });
user20296703
0
votes
0 answers

Kotlin/Micronaut - Client '/': Connect Error: Connection refused: localhost/127.0.0.1:9999

I'm writing some unit tests for a rest controller using HttpClient but I'm gettint the error on the title in the exchange part, we are using DynamoDBEmbeddedClient to have a fake data base instead of using the real db for testing, before adding the…
0
votes
1 answer

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 DynamoDBDocumentClient (an utility that will…
0
votes
1 answer

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-partion. How can I get a list of all the unique…
0
votes
1 answer

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 addition I also want to know how to download local…
0
votes
1 answer

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 directly making changes via the console. What I…
0
votes
1 answer

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 " daily " . Is it possible to take a backup of all these tables in…
0
votes
1 answer

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 (parsedBody) there is a key called crypto. So,…
0
votes
0 answers

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 whenever I try to add another country and address for the…
0
votes
1 answer

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, but it's the only change I've did in the…
0
votes
0 answers

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 with http://localhost:8000 as the url. So I wanted…
Chanonry
  • 423
  • 7
  • 19
0
votes
1 answer

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 tables ). then run the system. I wrote a compose…