Skip to content

Commit ce50d52

Browse files
authored
fix: add batch eval, recommendation, and CloudWatch Logs write permissions to docs (#1113)
1 parent eba0e40 commit ce50d52

2 files changed

Lines changed: 49 additions & 9 deletions

File tree

docs/PERMISSIONS.md

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,20 @@ Required for all deployment operations (`deploy`, `status`, `diff`).
335335
| `bedrock-agentcore:Evaluate` | `run evals` | Run on-demand evaluation against agent traces |
336336
| `bedrock-agentcore:UpdateOnlineEvaluationConfig` | `pause online-eval`, `resume online-eval` | Pause or resume online evaluation |
337337

338+
### Batch evaluation and recommendations
339+
340+
| Action | CLI Commands | Purpose |
341+
| ----------------------------------------- | ---------------- | ------------------------------ |
342+
| `bedrock-agentcore:StartBatchEvaluation` | `run batch-eval` | Start a batch evaluation job |
343+
| `bedrock-agentcore:GetBatchEvaluation` | `run batch-eval` | Poll batch evaluation status |
344+
| `bedrock-agentcore:ListBatchEvaluations` | `evals history` | List past batch evaluations |
345+
| `bedrock-agentcore:StopBatchEvaluation` | `run batch-eval` | Stop an in-progress batch eval |
346+
| `bedrock-agentcore:DeleteBatchEvaluation` | `run batch-eval` | Delete a batch evaluation |
347+
| `bedrock-agentcore:StartRecommendation` | `run recommend` | Start a recommendation job |
348+
| `bedrock-agentcore:GetRecommendation` | `run recommend` | Poll recommendation status |
349+
| `bedrock-agentcore:ListRecommendations` | `run recommend` | List past recommendations |
350+
| `bedrock-agentcore:DeleteRecommendation` | `run recommend` | Stop/delete a recommendation |
351+
338352
### Identity and credential management
339353

340354
| Action | CLI Commands | Purpose |
@@ -361,14 +375,19 @@ Required for all deployment operations (`deploy`, `status`, `diff`).
361375

362376
### Logging, traces, and observability
363377

364-
| Action | CLI Commands | Purpose |
365-
| ------------------------------- | ---------------------------------------- | --------------------------------------------- |
366-
| `logs:StartLiveTail` | `logs` | Stream agent logs in real-time |
367-
| `logs:FilterLogEvents` | `logs` | Search agent logs |
368-
| `logs:StartQuery` | `traces list`, `traces get`, `run evals` | Run CloudWatch Logs Insights queries |
369-
| `logs:GetQueryResults` | `traces list`, `traces get`, `run evals` | Retrieve query results |
370-
| `logs:DescribeResourcePolicies` | `deploy` | Check for X-Ray log resource policy |
371-
| `logs:PutResourcePolicy` | `deploy` | Create resource policy for X-Ray trace access |
378+
| Action | CLI Commands | Purpose |
379+
| ------------------------------- | ---------------------------------------- | ---------------------------------------------------------- |
380+
| `logs:StartLiveTail` | `logs` | Stream agent logs in real-time |
381+
| `logs:FilterLogEvents` | `logs` | Search agent logs |
382+
| `logs:StartQuery` | `traces list`, `traces get`, `run evals` | Run CloudWatch Logs Insights queries |
383+
| `logs:GetQueryResults` | `traces list`, `traces get`, `run evals` | Retrieve query results |
384+
| `logs:DescribeResourcePolicies` | `deploy` | Check for X-Ray log resource policy |
385+
| `logs:PutResourcePolicy` | `deploy` | Create resource policy for X-Ray trace access |
386+
| `logs:DescribeLogGroups` | `run batch-eval`, `run recommend` | Discover runtime log groups for evaluation data sources |
387+
| `logs:CreateLogGroup` | `run batch-eval` | Create log group for batch evaluation results output |
388+
| `logs:CreateLogStream` | `run batch-eval` | Create log stream for batch evaluation results |
389+
| `logs:PutLogEvents` | `run batch-eval` | Write batch evaluation results to CloudWatch Logs |
390+
| `logs:PutRetentionPolicy` | `run batch-eval` | Set retention policy on batch evaluation results log group |
372391

373392
### Transaction search setup
374393

docs/policies/iam-policy-user.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,22 @@
8989
"Action": ["kms:CreateKey", "kms:TagResource"],
9090
"Resource": "*"
9191
},
92+
{
93+
"Sid": "BatchEvalAndRecommendations",
94+
"Effect": "Allow",
95+
"Action": [
96+
"bedrock-agentcore:StartBatchEvaluation",
97+
"bedrock-agentcore:GetBatchEvaluation",
98+
"bedrock-agentcore:ListBatchEvaluations",
99+
"bedrock-agentcore:StopBatchEvaluation",
100+
"bedrock-agentcore:DeleteBatchEvaluation",
101+
"bedrock-agentcore:StartRecommendation",
102+
"bedrock-agentcore:GetRecommendation",
103+
"bedrock-agentcore:ListRecommendations",
104+
"bedrock-agentcore:DeleteRecommendation"
105+
],
106+
"Resource": "*"
107+
},
92108
{
93109
"Sid": "LogsStreamingAndSearch",
94110
"Effect": "Allow",
@@ -98,7 +114,12 @@
98114
"logs:StartQuery",
99115
"logs:GetQueryResults",
100116
"logs:DescribeResourcePolicies",
101-
"logs:PutResourcePolicy"
117+
"logs:PutResourcePolicy",
118+
"logs:DescribeLogGroups",
119+
"logs:CreateLogGroup",
120+
"logs:CreateLogStream",
121+
"logs:PutLogEvents",
122+
"logs:PutRetentionPolicy"
102123
],
103124
"Resource": "*"
104125
},

0 commit comments

Comments
 (0)