How are we doing? Please help us improve AWS. Take our short survey

Questions tagged [amazon-dynamodb]

Amazon DynamoDB is a proprietary closed-source cloudnative key-value and document database optimized for horizontal scaling. It's a fully managed, multiregion, multimaster database with built-in security, backup and restore, and in-memory caching for internet-scale applications. DynamoDB is hosted on AWS, but also has a local deployment option just for development and functional testing. Used on amazon.com.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

not being able to create table locally when running DynamoDB local on Docker

I am working on a Django App Here is my code: def get(self, request): dynamo_db = boto3.resource( "dynamodb", region_name="localhost", aws_access_key_id=os....
TechSelfLearner's user avatar
0 votes
3 answers
25 views

How to reuse dynamoDB table

I use aws cdk to deploy a stack that contains a dynamoDB table. For each deploy of my stack, CloudFormation creates a new table and links it to my lambda function. I want to know how I can reuse an ...
Winter Fox's user avatar
0 votes
0 answers
10 views

Mocking DynamoDB works in Lambda function but not in Layer with aws-sdk-client-mock and Jest, any solutions? [closed]

I am using aws sdk client mock I am trying to mock dynamodb using it. i am able to mock dynamodb in lambda function but not in layer here is my github code i think this has to code with configuration ...
hafiz ali's user avatar
  • 1,318
0 votes
1 answer
28 views

aws-sdk dynamodb add fails

The code below fails with the following error message. I don't see an obvious problem. Am using aws-sdk v3 "errorType": "TypeError", "errorMessage": "Cannot read ...
Siddharth Ram's user avatar
0 votes
1 answer
20 views

TransactionWriteItems with update overrides existing entry in DynamoDB?

According to AWS documentation, if an item exists in the table, TransactWriteItems will update its attributes, instead of overriding it like a put operation. However, in practice I think it does the ...
Yunhan Zou's user avatar
1 vote
1 answer
24 views

DynamoDB scan - are items with same partition key returned in order

I know DynamoDB scan doesn't guarantee ordering of items across the board but i wonder if atleast items with the same partition key still get returned in order? For example would the following events ...
Declan Price's user avatar
0 votes
1 answer
15 views

Can a DynamoDB attribute store different type of data?

I am using AWS DynamoDB to store some settings value, with only 2 attributes there, settingName and settingValue. The data type of settingName is a string. Different Items in that table can have ...
Anthony Luo's user avatar
-1 votes
1 answer
25 views

Check an attribute exists or not inside an object in DynamoDB

I like to fetch records which has null value of an attribute, the problem is this attribute exists inside another attribute am trying to do it via aws console i tried with contains and not contains ...
Kannan T's user avatar
  • 1,589
0 votes
1 answer
22 views

Max TPS for strongly consistent reads on an on-demand dynamo db table

I have a use case where I need to handle 3000 TPS of incoming traffic. This would mainly involve calling a DynamoDB table to do version checks. We plan to have an on-demand table for this. Wanted to ...
Mooncrater's user avatar
  • 3,970
0 votes
0 answers
20 views

Unable to see DynamoDB table in localhost endpoint after deploying a Serverless project with Localstack Dynamodb

I am unable to see the DynamoDB table that I am creating in Localstack DynamoDB using Serverless. After sls deploy and sls offline, the Localstack is running on 4566 but I only see TableNames [] not ...
Neelam 's user avatar
0 votes
1 answer
12 views

Looking for solution to `Error parsing parameter '--request-items': Invalid JSON:...`

I'm trying to use AWS Cloud9 IDE in the CLI to create a table in AWS DynamoDB, then have a .json file filled with 20 items and use the CLI to upload those 20 items to the DynamoDB table with a variety ...
jaycarn's user avatar
0 votes
1 answer
37 views

DynamoDb Put Method not recognizing ExpectedAttributeValue() for column_2 - how to fix?

I am trying to use ExpectedAttributeValue() in Put method of map. public void saveToDynamoDb(TablePojo tableObj) { try { map<String, ...
Rohini's user avatar
  • 9
0 votes
0 answers
23 views

AWS lambda + api gateway + Auth0 + dynamodb: How store the userid [closed]

I am using dynamodb (JWT Authorizer) lambda api gateway Auth0 I am trying to create a CRUD operation. But i want to store the user info also like { 'id': '34', 'Subject': 'microsoft', 'created_at': ...
Santhosh's user avatar
  • 9,351
0 votes
1 answer
26 views

How to get the highest value of a column in Aws dynamo DB from .net core lambda

I wanted to get the highest value of a column from aws dynamo db in a .net core application(deployed as lambda). I came across this https://repost.aws/questions/QUtU_mhuDoRM-Z3YoqIrCTaA/get-max-...
Sajan's user avatar
  • 135
1 vote
1 answer
25 views

Populate GSI attributes in Dynamodb if GSI is added on an existing table

I have an existing table with all the data, around 1 million records. I needed to add GSI to the table to better query some data. However, with app logic the GSI is being populated only for new ...
Ajay Narain Mathur's user avatar
2 votes
0 answers
37 views

Missing data on inserting in AWS DynamoDB 20000 items. No error, no UnprocessedItem, no throttling

I have a lambda that insert 20000 items on a dyanmo db table using batchWrite this is the function that insert the items async function writeOnDynamoDB(items: any, ruleId: string) { const dynamoDB ...
Mikfaina's user avatar
0 votes
1 answer
18 views

Checking with DynamoDB that another row exists?

Let's say that I have an item PK=foo and SK=bar. What the item contains is not relevant. How can I check when inserting another item that this particular item exists? In this case both items would ...
eof's user avatar
  • 361
0 votes
0 answers
33 views

How to use AWS Xray to trace outgoing HTTP Calls in C#?

I'm trying to use AWS Xray on a C# Lambda function to trace outgoing HTTP calls. My code snippet is as such: public class Function : Common.Functions.BaseFunction { public Function() { ...
BiscuitCreature's user avatar
0 votes
1 answer
52 views

Real time process dynamoDB table with AWS Lambda

I am currently working on a stream of data that comes from an IoT rule and inputs the readings to a dynamoDB table. From that I need to rearrange the data to make predictions. For every new data entry,...
Higor Nunes's user avatar
1 vote
1 answer
20 views

Issue in single-table design DynamoDB and limit query parameters

I want to be able to limit the fetch elements I am getting in each query, but I am facing the following issue here: Since I use the single-table design in DynamoDB I am getting only four items here: ...
lucasbbs.dk's user avatar
0 votes
1 answer
27 views

How to create else reference resources in AWS CDK in CI/CD?

I’m curious about how to use CI/CD in conjunction with AWS CDK; specifically, I want need a pattern where if a given resource does not yet exist, it is created else the (therefore existing) resource ...
jbuddy_13's user avatar
  • 828
0 votes
0 answers
14 views

The sink operator waits for response from database in Flink?

I am wondering that the detail procedure of the sink when Flink inserts the records to database in streaming. My configuration is that I use the checkpoint with 5 minutes using exactly once. My ...
sclee1's user avatar
  • 1,055
0 votes
1 answer
18 views

Optimal way to query an item inside a list attribute in DynamoDB

I have a table which has a list attribute. I want all the records with some value X in the list. I am aware of contains which scans the table. However, I want to do it as optimally as possible. I have ...
Dark Matter's user avatar
-2 votes
1 answer
31 views

DynamoDB sortkey mapping

I am using dynamoDB with java. DocumentI am using has three fields, which are defined as: Partition key (string) Sort key (string) body (json) I am strugling with mapping sort key, it is plain ...
rudkul's user avatar
  • 17
0 votes
1 answer
23 views

Spring Data DynamoDB NoSuchMethodException on everything except save

The service is using a DynamoDB with Spring Data. Database access, object mapping etc. all work without errors, I can save objects in the database as expected. My problem is that no method except the ...
Juliette's user avatar
  • 916
0 votes
2 answers
21 views

Lambda not discarding records from DynamoDB Stream Table if retry attempts is exceed the limit

I have a Lambda that attached to the DynamoDB stream. I configured retry attempts upto 5. I have SQS as on failure destination. In some cases lambda is timing out and It retried upto 5 times. But ...
Shoba 's user avatar
  • 632
0 votes
1 answer
29 views

Creating Amazon DynamoDB Table Items from a JSON File

I have a json with ~100,000 elements that I would like to insert into a dynamodb table. Since this only needs to be done once, a simple manual process would suffice for me. Unfortunately, on the ...
HansJuergen's user avatar
0 votes
1 answer
16 views

DynamoDB enchanced client batch error response

In the past while using DynamoDBMapper I was able to get information after batch put items about the error message. Right now doing the batch using EnchancedDynamoDBClient I can only get key of that ...
Thomas124124's user avatar
0 votes
1 answer
11 views

AWS Glue Dynamo Extract

I exported DYnamoDB table to S3, and used this guide to import into AThena. Each column is an entire dynam entry. I get: Item {key={s=value1}, key2={n=value2}} {key={s=value3}, key2={n=value4}} {key={...
MikeF's user avatar
  • 692
0 votes
1 answer
19 views

NoSQL data structure design for many to many relations + "NOT in" problem

the RDBMS logic is still in my head and I try to move to nosql. I know there are already million posts on this topic but I am searching for a specific scenario where I could not find any answer yet: ...
user3246277's user avatar
-1 votes
1 answer
30 views

Better understanding DyamoDB compound sort keys

I'm trying to understand how use compound sort keys as discussed in this video. I understand the concept of chaining values together in this key to make querying for data more efficient, but I don't ...
Zach Kaigler's user avatar
0 votes
1 answer
28 views

Describe table while table is highly in use in Dynamo DB

I am using java sdk to access dynamo db. Just want some suggestion related to dynamo db describe table. is it recommended to use describe table while table is in highly use for other read and write ...
nitin tyagi's user avatar
0 votes
1 answer
43 views

The request signature we calculated does not match the signature you provided for DynamoDB

I have a dataset on a dynamodb table and i have a script to populate this table. Locally i can interact with it using const credentials = new AWS.SharedIniFileCredentials({profile: 'myProfile'}) But ...
Rodrigo Burgos's user avatar
0 votes
2 answers
60 views

AWS Lambda function for a website's view counter increments by 2 instead of 1

I created a Lambda function that connects to my DynamoDB table and gets the item view_count and then sets view_count += 1 and then updates the view_count item and returns view_count as a string. When ...
BigWorm93's user avatar
0 votes
2 answers
50 views

AWS CDK Allow Lambda to write items into AWS DynamoDB

I try to build a lambda function that is able to add items into dynamo db. The lambda is accessed via API Gateway and it's protected via user pool. However, every time I try to add something into the ...
thomaswiiswitch's user avatar
0 votes
0 answers
25 views

jest-dynalite with @aws-sdk/client-dynamodb v3 - Error [ReadError]: Database is not open

I'm trying to migrate from aws-sdk v2 to v3. I use jest-dynalite version 3.6.1. Works great with v2. But as I am migrating to v3, I get the following error: Error [ReadError]: Database is not open I ...
bkj's user avatar
  • 99
0 votes
0 answers
27 views

Using assume_role to connect to dynamodb using boto3 in databricks python notebook is giving NoCredentialsError: Unable to locate credentials

I am trying to connect to dynamodb using boto3 with assume_role on databricks. Here is the example code where I am getting error %pip install boto3 import boto3 sts_client = boto3.client("sts&...
Vinit Khandelwal's user avatar
0 votes
1 answer
24 views

Running local dynamodb (docker) using Maven plugin io.fabric8

Using Maven I want to start local dynamodb (using docker) before IT (Integration Test) and stop it after IT is done. I can see that the server start (I am looking at Docker Desktop and I see that the ...
balderman's user avatar
  • 22.6k
0 votes
2 answers
25 views

DynamoDb AccessDeniedException when apparently making identical queries to table

I have two API calls to the BE that are fired simultaneously. Both access the same record in a DynamoDb table. 90% of the time, there is no issue. 10% of the time, I get the following error: pynamodb....
alitaleg's user avatar
  • 165
0 votes
1 answer
24 views

How to patch Boto3.resource DynamoDb Table within a pytest test method

I'm trying to use this answer as an example to test that a dynamo table is not written to. Because I am using moto to test my reads & writes, I have to do the import inside the test case. I ...
MikeF's user avatar
  • 692
0 votes
1 answer
27 views

Sorting Issue in DynamoDB: ScanIndexForward Not Working as Expected

I am using DynamoDB with email as the partition key and created_at as the sort key, where created_at is a numeric field representing the date converted to a timestamp. When fetching data, I want to ...
ameell's user avatar
  • 26
0 votes
1 answer
27 views

DynamoDB strongly consistent read with query PK with SK range

Let's say we have a DynamoDB table with that has a partition key as a string and sort key as a string. Question 1. If a Query operation is run where the partition key is provided and but the sort key ...
David's user avatar
  • 109
0 votes
1 answer
39 views

Designing a single table for DynamoDB

I am working my through learning single table designs with DynamoDB and noSQL. I have invoice data with a few access patterns. Each invoice has an attribute of the tech used, and up to 5 options can ...
Yolo_chicken's user avatar
  • 1,187
0 votes
1 answer
36 views

DynamoDb write capacity usage

I'm testing DynamoDB and I made an Update Item request contaning a string with 650 chars. When I went to my AWS account, I checked the "Table capacity metrics" and I had a spike of consumed ...
Joao Lima's user avatar
0 votes
1 answer
21 views

How to integrate MWAA with Dynamodb

I've tried to search all over the internet a solution to integrate my environment MWAA with dynamodb. I am trying to substitute the s3 buckets to have more scale and performance on my MWAA. Can ...
Nyk Casseano's user avatar
0 votes
1 answer
18 views

How to use DynamoDb transactions with Object persistence model in .NET

AWS SDK provides Document model and Object persistence model to use any .NET instance as data for simple CRUD operations. Is there a way to use any .NET instance in DynamoDb transactions? Can I ...
Nodon's user avatar
  • 937
0 votes
1 answer
23 views

If Dynamo table has both PK and SK, would it possible to query table find all records that have a PK that begins with "abc" without specifying the SK

I did some research, but it seems like if the table has both PK and SK, i need to specify both on them in the query ? I am using QueryRequest in JAVA Map<String, String> ...
HellGuoan's user avatar
0 votes
1 answer
37 views

Query with global secondary index taking 800ms for 5000 items, normal?

I have a table with 5000 items in it. When querying using a Global Secondary Index, the query is taking approximately 800ms to return. This is using a Lambda on the same region as the table. Is this ...
Gigabit's user avatar
  • 127
0 votes
2 answers
26 views

Boto3 KeyConditionExpression works and get_item does not

I am new to DynamoDB and finding my way around DocumentDBs versus Relational DBs. My code is running via AWS Lambda functions with a Python runtime. It works. def get_item_by_id(table_name: str, ...
dimButTries's user avatar
0 votes
0 answers
22 views

Decrypt at rest data in Redshift

I'm loading data from dynamoDB to redshift database. Some columns that contain sensitive information are encrypted with AWS KMS. I need to decrypt these column values in redshift and load the ...
user21872554's user avatar

1
2 3 4 5
272