You can create an index using the console, or by calling the CreateIndex API. You can use the AWS Command Line Interface (AWS CLI) or SDK with the API. After you created your index, you can add documents directly to it or from a data source.
To create an index, you must provide the Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role for indexes to access CloudWatch. For more information, see IAM roles for indexes.
The following tabs provide a procedure for creating an index by using the AWS Management Console, and code examples for using the AWS CLI, and Python and Java SDKs.
To create an index
-
Sign in to the AWS Management Console and open the Amazon Kendra console at https://console.aws.amazon.com/kendra/
. -
Select Create index in the Indexes section.
-
In Specify index details, give your index a name and a description.
-
In IAM role provide an IAM role. To find a role, choose from roles in your account that contain the word "kendra" or enter the name of another role. For more information about the permissions that the role requires, see IAM roles for indexes.
-
Choose Next.
-
On the Configure user access control page, choose Next. You can update your index to use tokens for access control after you create an index. For more information, see Controlling access to documents.
-
On the Provisioning details page, choose Create.
-
It might take some time for the index to create. Check the list of indexes to watch the progress of creating your index. When the status of the index is
ACTIVE
, your index is ready to use.
After you created your index, you add documents to it. You can add them directly or create a data source that updates your index on a regular schedule.