Resource: aws_kendra_thesaurus

Terraform resource for managing an AWS Kendra Thesaurus.

Example Usage

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

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

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

Argument Reference

The following arguments are required:

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

import {
  to = aws_kendra_thesaurus.example
  id = "thesaurus-123456780/idx-8012925589"
}

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

% terraform import aws_kendra_thesaurus.example thesaurus-123456780/idx-8012925589