Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/PERMISSIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,15 @@ These EC2 and EFS `Describe*` actions do not support resource-level scoping, so
| Action | CLI Commands | Purpose |
| ------------------------------------------------ | ----------------------------------------- | --------------------------------------------- |
| `bedrock-agentcore:Evaluate` | `run evals` | Run on-demand evaluation against agent traces |
| `lambda:InvokeFunction` | `run evals` | Invoke code-based evaluator Lambda functions |
| `bedrock-agentcore:UpdateOnlineEvaluationConfig` | `pause online-eval`, `resume online-eval` | Pause or resume online evaluation |

`bedrock-agentcore:Evaluate` invokes a code-based evaluator's Lambda function using the **caller's** identity, so
`lambda:InvokeFunction` is required on the caller when running `run eval` against a `code-based` evaluator (including
DeepEval and Autoevals third-party evaluators). Evaluator functions are named `<AgentName>-eval-<evaluatorName>`, so the
permission can be scoped to `arn:*:lambda:*:*:function:*-eval-*`. Builtin and `llm-as-a-judge` evaluators do not need
this permission.

### Batch evaluation and recommendations

| Action | CLI Commands | Purpose |
Expand Down
6 changes: 6 additions & 0 deletions docs/policies/iam-policy-user.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@
],
"Resource": "*"
},
{
"Sid": "CodeBasedEvaluatorInvocation",
"Effect": "Allow",
"Action": "lambda:InvokeFunction",
"Resource": "arn:*:lambda:*:*:function:*-eval-*"
},
{
"Sid": "AgentCoreResourceStatus",
"Effect": "Allow",
Expand Down
Loading