Resource: aws_kendra_experience

Terraform resource for managing an AWS Kendra Experience.

Example Usage

Basic Usage

resource "aws_kendra_experience" "example" {
  index_id    = aws_kendra_index.example.id
  description = "My Kendra Experience"
  name        = "example"
  role_arn    = aws_iam_role.example.arn

  configuration {
    content_source_configuration {
      direct_put_content = true
      faq_ids            = [aws_kendra_faq.example.faq_id]
    }
    user_identity_configuration {
      identity_attribute_name = "12345ec453-1546651e-79c4-4554-91fa-00b43ccfa245"
    }
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

configuration

The configuration configuration block supports the following arguments:

content_source_configuration

The content_source_configuration configuration block supports the following arguments:

user_identity_configuration

The user_identity_configuration configuration block supports the following argument:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import Kendra Experience using the unique identifiers of the experience and index separated by a slash (/). For example:

import {
  to = aws_kendra_experience.example
  id = "1045d08d-66ef-4882-b3ed-dfb7df183e90/b34dfdf7-1f2b-4704-9581-79e00296845f"
}

Using terraform import, import Kendra Experience using the unique identifiers of the experience and index separated by a slash (/). For example:

% terraform import aws_kendra_experience.example 1045d08d-66ef-4882-b3ed-dfb7df183e90/b34dfdf7-1f2b-4704-9581-79e00296845f