Skip to content

Commit e98b4d7

Browse files
committed
adding agent collaborator test
1 parent 2377229 commit e98b4d7

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
This example shows how to deploy a basic Bedrock agent collaborator.
1+
This example shows how to deploy a basic Bedrock agent collaborator with a supervisor agent and a collaborator agent with agent alias.

examples/agent-collaborator/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- BEGIN_TF_DOCS -->
2-
This example shows how to deploy a basic Bedrock agent collaborator.
2+
This example shows how to deploy a basic Bedrock agent collaborator with a supervisor agent and a collaborator agent with agent alias.
33

44
## Requirements
55

iam.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ locals {
55

66

77
resource "aws_iam_role" "agent_role" {
8-
count = var.create_agent || var.create_collaborator ? 1 : 0
8+
count = var.create_agent ? 1 : 0
99
assume_role_policy = data.aws_iam_policy_document.agent_trust[0].json
1010
name_prefix = var.name_prefix
1111
}
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
run "agent_collaborator_plan" {
2+
command = plan
3+
module {
4+
source = "./examples/agent-collaborator"
5+
}
6+
}
7+
8+
run "agent_collaborator_apply" {
9+
command = apply
10+
module {
11+
source = "./examples/agent-collaborator"
12+
}
13+
}

0 commit comments

Comments
 (0)