From eed12ac476f0b44e6215150ce3734aefb625ce4a Mon Sep 17 00:00:00 2001 From: Doruk Ozturk Date: Mon, 14 Oct 2024 20:29:16 -0400 Subject: [PATCH] Update gen_ai_rag_stack.py --- cdk/examples/generative_ai_rag/lib/gen_ai_rag_stack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdk/examples/generative_ai_rag/lib/gen_ai_rag_stack.py b/cdk/examples/generative_ai_rag/lib/gen_ai_rag_stack.py index 8cc9536e..daa9e55a 100644 --- a/cdk/examples/generative_ai_rag/lib/gen_ai_rag_stack.py +++ b/cdk/examples/generative_ai_rag/lib/gen_ai_rag_stack.py @@ -96,7 +96,7 @@ def __init__( self.task_role.add_to_policy( PolicyStatement( effect=Effect.ALLOW, - actions=["bedrock:InvokeAgent", "bedrock:InvokeModel"], + actions=["bedrock:Retrieve", "bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream"], resources=["*"] ) )