Skip to content

Commit

Permalink
feat: Update serverless.yml with new Bedrock permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbam committed Aug 14, 2024
1 parent 89e88e4 commit 35d7594
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ provider:
Action:
- dynamodb:*
Resource:
- "arn:aws:dynamodb:*:*:table/${self:provider.environment.DYNAMODB_TABLE_NAME}"
- "arn:aws:dynamodb:::table/${self:provider.environment.DYNAMODB_TABLE_NAME}"
- Effect: Allow
Action:
- bedrock:InvokeModel
Resource:
- "arn:aws:bedrock:*::foundation-model/anthropic.claude-*"
- "arn:aws:bedrock:*::foundation-model/stability.stable-diffusion-*"
- "arn:aws:bedrock:::foundation-model/anthropic.claude-*"
- "arn:aws:bedrock:::foundation-model/stability.stable-diffusion-*"
- Effect: Allow
Action:
- bedrock:Retrieve
Resource:
- "arn:aws:bedrock:::knowledge-base/*"

functions:
mention:
Expand Down

0 comments on commit 35d7594

Please sign in to comment.