diff --git a/docs/policies/iam-policy-boundary.json b/docs/policies/iam-policy-boundary.json index 751278c00..1a0cb6f8c 100644 --- a/docs/policies/iam-policy-boundary.json +++ b/docs/policies/iam-policy-boundary.json @@ -4,7 +4,7 @@ { "Sid": "BedrockModelAccess", "Effect": "Allow", - "Action": ["bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream"], + "Action": ["bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream", "bedrock:CountTokens"], "Resource": ["arn:aws:bedrock:*::foundation-model/*", "arn:aws:bedrock:*:ACCOUNT_ID:*"] }, { diff --git a/docs/policies/iam-policy-user.json b/docs/policies/iam-policy-user.json index b7fa29118..38c728542 100644 --- a/docs/policies/iam-policy-user.json +++ b/docs/policies/iam-policy-user.json @@ -116,7 +116,7 @@ { "Sid": "BedrockModelInvocation", "Effect": "Allow", - "Action": ["bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream"], + "Action": ["bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream", "bedrock:CountTokens"], "Resource": "*" }, {