Resource: aws_bedrockagent_agent_action_group

Terraform resource for managing an AWS Agents for Amazon Bedrock Agent Action Group.

Example Usage

Basic Usage

resource "aws_bedrockagent_agent_action_group" "example" {
  action_group_name          = "example"
  agent_id                   = "ABDJFOWER1"
  agent_version              = "DRAFT"
  skip_resource_in_use_check = true
  action_group_executor {
    lambda = "arn:aws:lambda:us-east-1:123456789012:function:example-function"
  }
  api_schema {
    s3 {
      s3_bucket_name = "example-bucket"
      s3_object_key  = "path/to/schema.json"
    }
  }
}

Argument Reference

The following arguments are required:

action_group_executor

This argument is processed in attribute-as-blocks mode.

The following arguments are required:

api_schema

This argument is processed in attribute-as-blocks mode.

The following arguments are optional:

s3

This argument is processed in attribute-as-blocks mode.

The following arguments are optional:

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 Agents for Amazon Bedrock Agent Action Group using the ABDJFOWER1,HSKTNKANI4,DRAFT. For example:

import {
  to = aws_bedrockagent_agent_action_group.example
  id = "ABDJFOWER1,HSKTNKANI4,DRAFT"
}

Using terraform import, import Agents for Amazon Bedrock Agent Action Group using the example_id_arg. For example:

% terraform import aws_bedrockagent_agent_action_group.example ABDJFOWER1,HSKTNKANI4,DRAFT