Skip to content

How do I resolve SCP conflicts that prevent access to Amazon Bedrock and related AWS Marketplace operations?

1 minute read
0

When I try to activate IAM user access to Amazon Bedrock foundation models, I get the "User is not authorized" error.

Resolution

If your AWS Organizations service control policy (SCP) has an explicit deny for AWS Marketplace actions, then you can't access your Amazon Bedrock foundation models. You might receive the following error:

"arn:aws:iam::123456789012:user/consoleUser is not authorized to perform: aws-marketplace:Subscribe on resource: * with an explicit deny in a service control policy."

To resolve this error, attach an IAM policy for your foundation models to your IAM role that allows the following AWS Marketplace actions:

  • aws-marketplace:Subscribe
  • aws-marketplace:Unsubscribe
  • aws-marketplace:ViewSubscriptions

Then, modify or remove the explicit deny policy for the aws-marketplace:Subscribe API action request in your AWS Organizations SCP.

AWS OFFICIALUpdated 6 months ago
2 Comments

I'm getting this, which seems related, in an SCP when I'm trying to add a Condition to exempt a Group in IDC from an aws-marketplace:Subscribe Deny.

• Jamba-Instruct - User: arn:aws:sts::123456789012:assumed-role/AWSReservedSSO_AdministratorAccess_817631e09ff1e93f/michaelg is not authorized to perform: aws-marketplace:Subscribe on resource: * with an explicit deny in a service control policy

IF I'm using IDC, I do not need to Allow the Subscribe. I want to Deny the ability to Subscribe unless you have a specific PermissionSet. This will not work for me

Clearly there is a bug in the way the SCP is processed. Maybe AWS could just fix the bug?

replied 5 months ago

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

AWS
MODERATOR
replied 5 months ago