Resource: aws_bedrockagent_agent_knowledge_base_association

Terraform resource for managing an AWS Agents for Amazon Bedrock Agent Knowledge Base Association.

Example Usage

Basic Usage

resource "aws_bedrockagent_agent_knowledge_base_association" "example" {
  agent_id             = "012EXAMPLE"
  description          = "Example Knowledge base"
  knowledge_base_id    = "345EXAMPLE"
  knowledge_base_state = "ENABLED"
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Attribute Reference

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

Import

In Terraform v1.5.0 and later, use an import block to import Agents for Amazon Bedrock Agent Knowledge Base Association using the 012AGENTID-DRAFT-345678KBID. For example:

import {
  to = aws_bedrockagent_agent_knowledge_base_association.example
  id = "012AGENTID-DRAFT-345678KBID"
}

Using terraform import, import Agents for Amazon Bedrock Agent Knowledge Base Association using the 012AGENTID-DRAFT-345678KBID. For example:

% terraform import aws_bedrockagent_agent_knowledge_base_association.example 012AGENTID-DRAFT-345678KBID