Skip to content

Commit ddd6dc2

Browse files
nimble-claudeNimble Claudeclaude
authored
Add AWS Marketplace permissions to Bedrock IAM policy (#6)
## Summary This PR fixes an issue where IAM users created with the `bedrock-user-permissions.yaml` CloudFormation template cannot invoke Bedrock models for the first time because they lack AWS Marketplace permissions. ## Problem According to AWS documentation: "For serverless models served from AWS Marketplace, a user with AWS Marketplace permissions must invoke the model once to enable it account-wide." Previously, users created by this template would encounter permission errors when attempting to invoke Bedrock models from AWS Marketplace for the first time. ## Solution Added the following AWS Marketplace permissions to the IAM policy: - `aws-marketplace:ViewSubscriptions` - `aws-marketplace:Subscribe` - `aws-marketplace:Unsubscribe` These permissions allow users to perform the first-time enablement of Bedrock models without requiring separate administrator intervention. ## Changes - Updated `bedrock-user-permissions.yaml` to include a new policy statement with AWS Marketplace permissions ## Testing Users created with this updated template will be able to: 1. View available AWS Marketplace subscriptions for Bedrock models 2. Subscribe to/enable Bedrock models from AWS Marketplace 3. Invoke those models without additional permission errors 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Nimble Claude <nimble-claude@thinknimble.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent c9fbc9d commit ddd6dc2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

bedrock-user-permissions.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ Resources:
2424
- "bedrock:InvokeModelWithResponseStream"
2525
Resource:
2626
- Ref: AllowedModels
27+
- Sid: "AllowMarketplaceSubscriptions"
28+
Effect: "Allow"
29+
Action:
30+
- "aws-marketplace:ViewSubscriptions"
31+
- "aws-marketplace:Subscribe"
32+
- "aws-marketplace:Unsubscribe"
33+
Resource: "*"
2734

2835
IAMUser:
2936
Type: AWS::IAM::User

0 commit comments

Comments
 (0)