Getting Started

In this section, we will login to our AWS account, create the QLDB ledger, and load a sample dataset.

Login to your AWS console

Visit (https://console.aws.amazon.com) in a web browser. Select “IAM user” and enter your AWS account ID.

Sign-In

Enter your IAM user name and password and click “Sign In”.

Sign-In

After logging in, you are redirected to the AWS console as shown below.

Console

Note the selected region in the upper right-hand corner of the console. Set this to a region that supports QLDB. The examples in this lab will use US West (Oregon) us-west-2. Find Services

Launch the Amazon QLDB Console

Navigate to Amazon QLDB by finding it under the list of services under Database, or you can find it by typing it in the search bar at the top.

Find Services

Create your first ledger

In the navigation pane of the Amazon QLDB console, go to the “Getting started” page and then click “Create ledger”: Create Ledger

On the “Create ledger” page, the Ledger name should be pre-populated with “vehicle-registration”. If it isn’t, enter “vehicle-registration” into the Ledger name box. Add any tags that you see fit, and then click Create ledger. Enter Ledger Name

You can access your ledger when its status becomes “Active”, which may take several minutes. Active Ledger

Load the sample data

Return to the “Getting started” page and proceed to the “Sample application data” section. Under the automatic option, choose “vehicle-registration” in the list of ledgers and click Load sample data. Active Ledger

The console should display “Sample data loaded” when the operation finishes successfully. This feature automatically creates four tables within the “vehicle-registration” ledger: VehicleRegistration, Vehicle, Person, and DriversLicense. It also creates indexes on these tables and inserts documents with sample data into them.