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

Dynamoose problem when creating shcemas "Cannot create preexisting table" or "Cannot do operations on a non-existent table"

I am using a single Table approach for my dynamodb design. Take a look here (Single Table Structure Example). No need to read all the page. The idea is that several different kind of entities will be stored in the same table. (for example, orders,…
Sergio Romano
  • 31
  • 1
  • 5
1
vote
1 answer

AWS DynamoDB Partition Key Lock Implementation in Java

I am running same application with two different ports in my local. The code I have provided is only for testing. Here access_key and secret_key will be provided from environment variables in later stage. When I run same application in different…
1
vote
1 answer

Odd behavior with begins_with and a binary column in DynamoDB

Summary When querying a binary range key using begins_with, some results are not returned even though they begin with the value being queried. This appears to only happen with certain values, and only in DynamoDB-local - not the AWS hosted version…
Pete Baughman
  • 2,996
  • 2
  • 19
  • 33
1
vote
3 answers

Dynamodb local web shell not displaying tables

I have set up dynamodb docker image with the following command: $ docker run -p 8000:8000 -v /Users/me/test/:/data/ amazon/dynamodb-local -jar DynamoDBLocal.jar --sharedDb --dbPath /data I am able to create a table: $ aws dynamodb create-table…
ionush
  • 323
  • 2
  • 6
  • 12
1
vote
1 answer

failed to make Query API call, ResourceNotFoundException: Cannot do operations on a non-existent table

Summary I'm making aws lambda function by AWS SAM. This function needs database, so I choose DynamoDB. Now I'm setting local environment for AWS SAM and DynamoDB. It seems that I success to set local DynamoDB, but it fails to connect when running…
1
vote
1 answer

Timing out while trying to access DynamoDB locally

I can access DynamoDB on AWS with my code. I can access the local DynamoDB with CLI. But I can't get the two to talk to each other. # deploying dynamodb docker run \ --detach \ --tty \ --interactive \ --publish 8000:8000 \ --name…
1
vote
1 answer

Launch and connect to Dynamodb Local within a container

We are using Dynamodb Local to do integration testing. It is launched inside a container, and within that container, we need to connect to Dynamodb local. Here is how the DocumentClient is initialized: const doc = new AWS.DynamoDB.DocumentClient({ …
1
vote
0 answers

I'm trying to 'stress test' a query with jest - but I can't get around the auto 5000ms timeout

I'm trying to stress test a dynamodb query using jest. I'm trying to get a pretty large json file (1.3 MB), but I keep getting the following error: "Timeout - Async callback was not invoked within the 5000ms timeout specified by…
Nathan
  • 77
  • 1
  • 9
1
vote
1 answer

Query a Global Secondary Index using contains in DynamoDB local

I have id as the hash key of my table and returnItemId which is the GSI. The returnItemId is a string which contains values separated by commas. Given a number for the GSI, I want to be able to query and get the correct item that contains it by…
MMM
  • 315
  • 1
  • 6
  • 19
1
vote
0 answers

How to connect with DynamoDB running in Docker Container locally?

What credentials or configuration should I use to connect to DynamoDB running in a Docker Container locally, through a webapp in Java with Eclipse. In Java code I use…
0
votes
0 answers

AWS Session/Security Token

I'm trying to create a Dynamo Database for a Flask web app for user login/authentication, but I can't find a session/security token on my user dashboard on the AWS console. I also tried using the aws configure command in my terminal, but it only…
0
votes
1 answer

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 = Region.AP_SOUTH_1; AwsCredentials…
0
votes
1 answer

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 Compose setup. I add a DynamoDB Local service: …
0
votes
1 answer

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 running locally using docker run -p 8000:8000…
Andreas Lundgren
  • 12,043
  • 3
  • 22
  • 44
0
votes
0 answers

Unable to get AWS creds for local dynamodb

I am trying to connect to local dynamodb on my system with my spark program. I am following https://aws.amazon.com/blogs/big-data/analyze-your-data-on-amazon-dynamodb-with-apache-spark/ However I am getting below error. 23/04/05 12:02:46 WARN…