capabilities.work

Provision Index and Start First Sync

A 4-step recipe with Amazon Kendra. We can help you get access.

Recipe · 4 steps

Provision Index and Start First Sync

Create an index, wait for ACTIVE, add a data source, and start a sync job.

  1. Create the new Amazon Kendra index. The index begins life in the CREATING state and is not queryable until it becomes ACTIVE.
  2. Poll the index until provisioning completes. The index reports a Status of CREATING while it is being built and ACTIVE once it can serve queries and accept documents.
  3. Register a data source connector against the now-active index so Kendra knows where to crawl content from.
  4. Start the first synchronization job so the connector begins crawling and indexing documents from the configured repository.
What you'll need to have ready
  • indexName: The name for the new search index.
  • indexRoleArn: The IAM role ARN that gives Kendra permission to manage the index.
  • indexEdition: The index edition, DEVELOPER_EDITION or ENTERPRISE_EDITION.
  • dataSourceName: The name for the data source connector.
  • dataSourceType: The data source connector type, such as S3 or SHAREPOINT.
  • dataSourceRoleArn: The IAM role ARN for the data source connector.
  • dataSourceSchedule: An optional cron schedule for recurring synchronization.
For your developer

Arazzo workflow amazon-kendra:provision-index-and-sync, 4 operations: CreateIndex → DescribeIndex → CreateDataSource → StartDataSourceSyncJob. Specs on APIs.io.