Tutorial prerequisites and considerations
Before you start this Amazon QLDB tutorial, make sure that you complete the following prerequisites:
-
Follow the AWS setup instructions in Accessing Amazon QLDB, if you haven't already done so. These steps include signing up for AWS and creating an AWS Identity and Access Management (IAM) user.
-
Follow the instructions in Setting up IAM permissions to set up IAM permissions for your QLDB resources. To complete all of the steps in this tutorial, you need full administrative access to your ledger resources through the AWS Management Console.
Note If you're already signed in as an IAM user with full AWS administrative permissions, you can skip this step.
-
(Optional) QLDB encrypts data at rest using a key in AWS Key Management Service (AWS KMS). You can choose one of the following types of AWS KMS keys:
-
AWS owned KMS key – Use a KMS key that is owned and managed by AWS on your behalf. This is the default option and requires no additional setup.
-
Customer managed KMS key – Use a symmetric encryption KMS key in your account that you create, own, and manage. QLDB doesn't support asymmetric keys.
This option requires you to create a KMS key or use an existing key in your account. For instructions on creating a customer managed key, see Creating symmetric encryption KMS keys in the AWS Key Management Service Developer Guide.
You can specify a customer managed KMS key by using an ID, alias, or Amazon Resource Name (ARN). To learn more, see Key identifiers (KeyId) in the AWS Key Management Service Developer Guide.
Note Cross-Region keys are not supported. The specified KMS key must be in the same AWS Region as your ledger.
-
Setting up IAM permissions
In the following steps, you use IAM to set up full access permissions through the console for all QLDB resources in your AWS account. To get started quickly, you grant these permissions by using an AWS managed policy. For more information, see AWS managed policies for Amazon QLDB.
To add full access permissions to yourself by directly attaching a managed policy
Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/
. -
Choose Users in the navigation pane, choose your user name, and then choose the Permissions tab.
-
Choose Add permissions, and then choose Attach existing policies directly to user.
-
Search for the following policy name, and then select the check box for this managed policy.
AmazonQLDBConsoleFullAccess -
Choose Next: Review to see the list of policies that are to be attached to the user. Then choose Add permissions.
For the purposes of this tutorial, you grant yourself full administrative access to all QLDB resources. For production use cases, however, follow the security best practice of granting least privilege, or granting only the permissions required to perform a task. For examples, see Identity-based policy examples for Amazon QLDB.
To create a ledger named vehicle-registration, proceed to Step 1: Create a new ledger.