Amazon QLDB Python tutorial
Important
End of support notice: Existing customers will be able to use Amazon QLDB until end of support on 07/31/2025. For more details, see
Migrate an Amazon QLDB Ledger to Amazon Aurora PostgreSQL
In this implementation of the tutorial sample application, you use the Amazon QLDB driver with the AWS SDK for Python (Boto3) to create a QLDB ledger and populate it with sample data.
As you work through this tutorial, you can refer to QLDB low-level client
Note
Where applicable, some tutorial steps have different commands or code examples for each supported major version of the QLDB driver for Python.
Topics
- Installing the Amazon QLDB Python sample application
- Step 1: Create a new ledger
- Step 2: Test connectivity to the ledger
- Step 3: Create tables, indexes, and sample data
- Step 4: Query the tables in a ledger
- Step 5: Modify documents in a ledger
- Step 6: View the revision history for a document
- Step 7: Verify a document in a ledger
- Step 8 (optional): Clean up resources