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

Questions tagged [amazon-qldb]

Amazon Quantum Ledger Database (Amazon QLDB) is a fully managed ledger database owned by a central trusted authority that provides a transparent, immutable, and cryptographically verifiable transaction log of all of your application changes. Amazon QLDB tracks all application data changes and maintains a complete and verifiable history of changes over time.

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

Updating the same QLDB document multiple times is not shown in the history

Not seeing the QLDB history reflecting all updates being made to a single document. When running multiple updates to a single document within a single execution of the QLDB console, only the last ...
0 votes
1 answer
23 views

How to monitor AWS QLDB in Datadog

I'm trying to monitor QLDB in Datadog with its metrics and integrate that with Pagerduty. Can't find a way to get the metrics of QLDB into Datadog. how can I monitor QLDB? Any help is appreciated
0 votes
1 answer
31 views

QLDB Python Driver Error Handling with Lambda and SQS

We have a QLDB ingestion process that consists of a Lambda function triggered by SQS. We want to make sure our pipeline is airtight so if a failure or error occurs during driver execution, we don't ...
0 votes
1 answer
47 views

AWS QLDB multi region support

I am working on QLDB from last 3 months on a single region using it as a leisure database. Now, business wants to move applications in multi-region support. I found many of the aws services support ...
  • 33
0 votes
0 answers
19 views

Amazon.QLDB.Model.LimitExceededException: 'Exceeded the limit of 5 active ledgers' when creating a ledger programmatically

I have a code for creating QLDB Ledgers on AWS. It works well but I can't find any documentation about this limitation. Amazon.QLDB.Model.LimitExceededException: 'Exceeded the limit of 5 active ...
  • 973
0 votes
0 answers
34 views

How to check if a QLDB result is empty using Go?

In Go, how can I check if a AWS QLDB result is empty? In node, the following would do the trick: txn.execute(statement).then((result: Result) => { const resultList: dom.Value[] = result....
  • 12.8k
0 votes
2 answers
125 views

How can I implement AWS QLDB standard mode with VPC endpoint?

AWS recommends QLDB Standard permissions mode instead of Allow_all in order to allow least privilege access for resources which need to run operations on QLDB. Reference: https://docs.aws.amazon.com/...
0 votes
1 answer
31 views

Error during QLDB ledger export through AWS CLI

I'm trying to export QLDB data through AWS CLI by following that documentation: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/qldb/export-journal-to-s3.html https://docs.aws....
0 votes
1 answer
65 views

QLDB Python driver seems very slow

I am using the Python AWS QLDB Driver to make queries against a QLDB ledger. I've noticed that the total time for results to return is about double what the internal qldb timing statistics says it ...
0 votes
2 answers
39 views

QLDB and Kotlin - "execute" method returning specific object

I am trying to execute an SQL statement at AWS QLDB like the example in the AWS SDK Git but using Kotlin. The example shows me that I can return something at "execute" (represented by "...
0 votes
1 answer
97 views

AWS QLDB | How to know if a transaction is successfully committed?

In AWS QLDB, I execute the below lambda: await qldbDriver.executeLambda(async (txn: TransactionExecutor) => { const check = (await txn.execute('SELECT * FROM Accounts WHERE owner = ?', document....
  • 12.8k
1 vote
1 answer
27 views

Is there a way to match entries in two AWS QLDB tables if the tables don't have common keys?

I'm building an anonymous polling system using AWS QLDB. I record each vote in a QLDB "votes" table without user's identity and participation info into "participation" table with ...
  • 11
0 votes
1 answer
34 views

Is there a way to visualize ongoing sessions/transaction on AWS QLDB?

I want to know if there is any metric related to QLDB where I could monitor the active ongoing sessions/transactions?
2 votes
1 answer
210 views

Lambda random long execution while running QLDB query

I have a lambda triggered by a SQS FIFO queue when there are messages on this queue. Basically this lambda is getting the message from the queue and connecting to QLDB through a VPC endpoint in order ...
-3 votes
1 answer
113 views

AWS QLDB - Terraform for creating table

Do anyone knows any CloudFormation to create table (not ledger) at QLDB via Terraform? https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qldb-ledger.html
1 vote
1 answer
71 views

Get qldb ledger table data in javascript object

So my issue is simple yet challenging. I am trying to transfer data from one ledger to another. Now for that, I am reading a whole table of data then creating an object for every document than ...
0 votes
1 answer
86 views

How to stop to write the data in Qldb stream when the transaction is of type read event in Qldb?

The problem is that whenever my Api is fetching any data from Qldb the Qldb ledger gets updated and it adds that data to Qldb stream but what I want is that whenever the API performs an insert, update,...
0 votes
1 answer
169 views

How to convert Amazon Ion object to JSON object in Go Lang?

I'm looking for a way to convert the Amazon Ion object to JSON in Go Lang. This problem came while I was implementing a DAO layer for Amazon QLDB. What I've done so far is using a Go Struct with both ...
1 vote
1 answer
98 views

Transfer all data from one ledger to another in AWS QLDB

I have a QLDB ledger and it's full of tables now. There are a lot of InActive tables and because of these tables, I cannot create more tables because there is a limit of 40 tables per ledger. Now for ...
0 votes
1 answer
116 views

Update multiple fields at once with QLDB Node.js driver

I'm trying to implement an API endpoint that handles PATCH or PUT requests, updating the relevant QLDB document with the request payload. I'm trying the following, but it doesn't seem to work: await ...
0 votes
0 answers
61 views

qldb nodejs unit test

Trying to create some useful unit tests for the node qldb driver. A common use case is that you open a transaction with executeLambda(), check if your item exists, if it does not insert, exit ...
0 votes
1 answer
133 views

Accessing QLDB ledger in another AWS account

I'm having trouble accessing the QLDB ledger in another AWS account. I have granted necessary IAM permission for cross-account access. I set the credentials in the EC2 where my python script is runing ...
2 votes
1 answer
338 views

how should define a PRIMARY KEY in PartiQL at Amazon QLDB?

I want to define a primary key in QLDB that the query language is PartiQL, how can I define ID as a primary key? CREATE TABLE CarInfo WITH (aws_tags = `{ 'ID': INT, 'Manufacturer': STRING, '...
  • 83
1 vote
1 answer
167 views

AWS QLDB - GDPR support

I am planning for AWS QLDB for audit data. Does QLDB support GDPR? Is there any performance impact to this? There are some fields encrypted using custom encryption key before storing into QLDB. I ...
  • 7,258
1 vote
1 answer
284 views

ion.Timestamp to json time

I saw that if I store QLDB ion.Timestamp, it cannot be converted directly to json time string (YYYY-MM-DDThh:mm:ss.sssZ). for example: // result of querying data object from histories(table, from, to) ...
  • 24k
1 vote
1 answer
133 views

How to retrieve minimum transaction/update time for all table on QLDB

In the doc, we can retrieve history by date, but how to retrieve minimum date for all tables on that ledger? I tried this: SELECT MIN(h.metadata.txTime) FROM history(Clients) AS h but it gives error: ...
  • 24k
1 vote
1 answer
100 views

Foreign constraints in QLDB table

Is there a way to add foreign constraints in a QLDB table? Suppose I have two open tables, one with and another without, a primary key. Can I add a foreign key constraint referencing those with a ...
  • 29
0 votes
2 answers
327 views

Amazon QLDB increase document transaction limit or counter it

I created an application that is in production now and it has a function that does a lot of calculations and stores the data in QLDB. This function was working fine but our user increased and now ...
0 votes
1 answer
101 views

QLDB Transaction Isolation

I was looking at the sample code here: https://docs.aws.amazon.com/qldb/latest/developerguide/getting-started.python.step-5.html, and noticed that the three functions get_document_id_by_gov_id, ...
  • 503
3 votes
2 answers
457 views

How to mock AWS QLDB in Node js

I want to do Jest test cases on QLDB to be covered my code lines as much I can. is there any way to do QLDB mock with our code covered ( Jest )
  • 350
0 votes
1 answer
105 views

Get X-Ray interactions For AWS QLDB Using Nodejs ( lambda )

I tried this way, But I want more detailed requests inside QLDB x-ray interactions. const AWSXRay = require("aws-xray-sdk"); /** QLDB x-ray */ AWSXRay.captureAWS(require("aws-sdk"))...
  • 350
0 votes
1 answer
719 views

Limited number of rows in QLDB

I need limited number of rows while fetch the data from QLDB. Unfortunately, QLDB does not support Limit function in it's queries. However, MySQL supports the feature of limited number of rows from ...
1 vote
1 answer
329 views

Amazon qldb SELECT query to search specific rows with very less READIo's

I have a table with the following columns UserID (index), SID (index), Cause (index), TimeValue (index), Amount I want to query the cause of a specific user id, Meaning I want some cause which is ...
0 votes
1 answer
88 views

Will this SELECT QLDB query using index be optimized or not

I have one table with some indexes and some different columns. I am running this query to get the result of a user's data, not all the user data. The user field is defined by UID The time field is ...
1 vote
1 answer
306 views

How to get latest result set based on the timestamp in amazon qldb?

I have many an IonStruct as follows. { revenueId: "0dcb7eb6-8cec-4af1-babe-7292618b9c69", ownerId: "u102john2021", revenueAddedTime: 2020-06-20T19:31:31.000Z, } I want to ...
  • 584
0 votes
1 answer
219 views

Is there a way to get the generated QLDB Ledger Name from qldb.CfnLedger in AWS CDK?

I'm creating a QLDB Ledger as part of my stack. I would like to not have to supply a Ledger Name (otherwise I can't create multiple envs because of name clashes). I also need to know the Ledger Name ...
0 votes
1 answer
277 views

How to enable paging for AWS QLDB search query results in python?

I am currently designing a project where my AWS Lambda Function in Python needs to run a search query on a table from a QLDB Ledger. The lambda function implements an API gateway endpoint which is ...
  • 727
2 votes
2 answers
195 views

Is the QLDB sum() fuction optimized?

We want to query our QLDB Ledger using the SUM() function (with a WHERE clause referring only to indexed fields). e.g., select count(*), sum(NonIndexedField) from myTable where IndexedField1 = "...
  • 1,755
0 votes
1 answer
269 views

How to fetch all records based on year in Amazon QLDB

I have a requirement to fetch all records from an amazon QLDB based on the given year. Here is my data inside the Revenues Table. { ownerId: "u102john2021", transactionId: "...
  • 584
1 vote
1 answer
805 views

How to convert Amazon QLDB IonStruct to Json in java?

I have written a QLDB query to fetch a document by document ID So that I want to convert this document to a JSON response and pass it through the rest end point. qldbDriver.QldbDriver().execute(txn -&...
  • 584
1 vote
1 answer
648 views

How to connect Amazon QLDB database in Spring boot?

I have a ledger-based database "demo" inside AWS qLdB. So I want to connect to that database through the Spring boot web application. First of all, I gave user permissions to QLDB like Then ...
  • 584
0 votes
1 answer
423 views

Can we alter AWS QLDB table?

Suppose I have created a table like this. CREATE TABLE Vehicle and insert some documents to this table. INSERT INTO Vehicle << { 'VIN' : '1N4AL11D75C109151', 'Type' : 'Sedan', } >>...
  • 129
3 votes
1 answer
919 views

How to get records in descending order in QLDB?

Select * from Transactions where id='123' I am trying to get transactions in descending order . But order by is not working here .
0 votes
1 answer
240 views

How to get the latest record first in qldb?

Select * from Transactions where id='1234' How to get latest record first i.e. records in descending order
1 vote
1 answer
114 views

Is QLDB compatible with the Outbox Pattern?

I have a use case for which QLDB makes the most sense. I also think the Outbox pattern makes sense for data reliability. However, I am worried about polluting the Journal with the outbox entries. My ...
  • 537
0 votes
1 answer
254 views

Amazon QLDB Multi-Region Architecture

I am new to QLDB and seem to be finding slightly conflicting info on multi-Region architecture. I see that it has high availability in a given Region; however, it is unclear as to what happens when an ...
0 votes
1 answer
108 views

Connect different region QLDB database

I have created windows instance in eu-west-2 and AWS doesn't provide QLDB service in eu-west-2 so I have created QLDB database service in eu-west-1 region. Now I am getting error when I use QLDB ...
  • 332
1 vote
1 answer
98 views

Prevent DELETES from bypassing versioning in Amazon QLDB

Amazon QLDB allows querying the version history of a specific object by its ID. However, it also allows deleting objects. It seems like this can be used to bypass versioning by deleting and creating a ...
  • 1,184
1 vote
2 answers
589 views

Is a SQL Injection Attack Possible in QLDB/PartiQL

This question came up in a code review in reference to a select query that is necessarily constructed using string interpolation (C#) and I can't seem to find a reference one way or the other. For ...
2 votes
1 answer
331 views

Guides or Examples for Mocking QLDB operations & transactions

I am currently writing an application that is writing to a QLDB ledger. I have a function like: // Use an interface that matches the QLDB Driver so we can inject / mock type ILedgerDriver interface { ...