Resource: aws_kendra_faq

Terraform resource for managing an AWS Kendra FAQ.

Example Usage

Basic

resource "aws_kendra_faq" "example" {
  index_id = aws_kendra_index.example.id
  name     = "Example"
  role_arn = aws_iam_role.example.arn

  s3_path {
    bucket = aws_s3_bucket.example.id
    key    = aws_s3_object.example.key
  }

  tags = {
    Name = "Example Kendra Faq"
  }
}

With File Format

resource "aws_kendra_faq" "example" {
  index_id    = aws_kendra_index.example.id
  name        = "Example"
  file_format = "CSV"
  role_arn    = aws_iam_role.example.arn

  s3_path {
    bucket = aws_s3_bucket.example.id
    key    = aws_s3_object.example.key
  }
}

With Language Code

resource "aws_kendra_faq" "example" {
  index_id      = aws_kendra_index.example.id
  name          = "Example"
  language_code = "en"
  role_arn      = aws_iam_role.example.arn

  s3_path {
    bucket = aws_s3_bucket.example.id
    key    = aws_s3_object.example.key
  }
}

Argument Reference

The following arguments are required:

The s3_path configuration block supports the following arguments:

The following arguments are optional:

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 aws_kendra_faq using the unique identifiers of the FAQ and index separated by a slash (/). For example:

import {
  to = aws_kendra_faq.example
  id = "faq-123456780/idx-8012925589"
}

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

% terraform import aws_kendra_faq.example faq-123456780/idx-8012925589