Skip to content

Commit d126e79

Browse files
committed
feat: Add Amazon Bedrock permissions for model invocation in task role
1 parent e47a287 commit d126e79

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

backend/src/iac/backend-stack.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,15 @@ export class BackendStack extends cdk.Stack {
192192
}),
193193
);
194194

195+
// Add Amazon Bedrock permissions for model invocation
196+
taskRole.addToPolicy(
197+
new iam.PolicyStatement({
198+
effect: iam.Effect.ALLOW,
199+
actions: ['bedrock:InvokeModel'],
200+
resources: ['*'],
201+
}),
202+
);
203+
195204
// Task Definition with explicit roles
196205
const taskDefinition = new ecs.FargateTaskDefinition(
197206
this,

0 commit comments

Comments
 (0)