Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

AI and LLM integration · Decision guide

Amazon Bedrock denies InvokeModel even though the model is in the catalog

Short answer

AccessDeniedException from Bedrock InvokeModel or Converse usually means the first call could not finish automatic model access. The calling role lacks aws-marketplace:Subscribe, an Anthropic model older than Claude Opus 4.7 still needs the use case form, or IAM does not allow bedrock:InvokeModel on the model or inference profile. Run get-foundation-model-availability to see which.

  • Applies to Amazon Bedrock runtime API (InvokeModel, Converse), boto3 1.44.9, AWS CLI v2
  • Updated
  • By Maaz Zindani, Senior Software Engineer

In commercial AWS Regions there is no longer a "Model access" page where you tick a box and wait. AWS's current documentation says access to most models is enabled on first use: the first invocation makes Bedrock start a Marketplace subscription in the background. When that background step cannot finish, every call after it returns AccessDeniedException, and the model looks open in the catalog while still refusing you.

One command tells you where you are stuck. Run it first, read the status fields, and pick the matching row below. Guides written for the old access page tell you to click buttons that are gone in commercial Regions, which is why they do not help.

Find your case

  1. If agreementAvailability is NOT_AVAILABLE or ERROR and the calling role has no aws-marketplace permissionsThe automatic subscription on the first call failed for lack of Marketplace rights.
  2. If the model is from Anthropic, older than Claude Opus 4.7, and you get FTUFormNotFilled or a PENDING statusThe one-time use case form is missing or still being processed.
  3. If everything reports AVAILABLE and AUTHORIZED but this role still gets deniedYour own IAM policy does not cover what the request names.
  4. If all checks pass, the Region supports the model, and the error staysThe account may need extra access that only AWS can grant.

Read the availability status first

Ask Bedrock how it sees this exact model ID in this Region. The response has an agreementAvailability status (AVAILABLE, PENDING, NOT_AVAILABLE or ERROR, with an errorMessage on ERROR), plus authorizationStatus, entitlementAvailability and regionAvailability. The command needs AWS CLI 2.27.42 or later.

Check one model in one Region

aws bedrock get-foundation-model-availability --model-id anthropic.claude-sonnet-4-20250514-v1:0 --region us-east-1

Check the Region too. Subscriptions are per account, but a model that exists in one Region may not be offered in the Region your client is configured for.

The first call had no Marketplace permissions

For a third-party model, Bedrock subscribes the account through AWS Marketplace on its first invocation. AWS lists three prerequisites: the calling role holds aws-marketplace:Subscribe, aws-marketplace:Unsubscribe and aws-marketplace:ViewSubscriptions, the account has a valid payment method for Marketplace purchases, and, for Anthropic models, the use case form is done. If one is missing, the subscription attempt fails and later calls return AccessDeniedException.

AWS states these permissions are needed only the first time a model is used in an account. Someone with Marketplace rights can make that first call, after which ordinary callers need just the Bedrock actions. After you fix the permissions, allow up to two minutes before the subscription completes.

Marketplace actions for the role that makes the first call

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": [
      "aws-marketplace:Subscribe",
      "aws-marketplace:Unsubscribe",
      "aws-marketplace:ViewSubscriptions"
    ],
    "Resource": "*"
  }]
}
  • Models from Amazon, Meta, Mistral AI and several other providers are not sold through Marketplace, so these actions do not apply to them.
  • Errors named MPAgreementBeingCreated mean the subscription is still being processed; AWS says to retry after 15 minutes.
  • A Marketplace agreement that failed because of an invalid payment method needs the payment method fixed, not a policy change.

Anthropic use case form and PENDING status

Anthropic requires first-time customers to submit use case details before using a model earlier than Claude Opus 4.7. AWS says to do this once per account, or once at the organization's management account, and that the form is inherited by other accounts in the organization. The list of affected models includes Claude Sonnet 4.6, Opus 4.6, Haiku 4.5 and the Claude 3 family. Anthropic models reached through the bedrock-mantle endpoint are exempt.

The error list names this case FTUFormNotFilled. Submit the form in the console by opening an Anthropic model from the catalog, or through the API. The CLI wants the fields as base64-encoded JSON: company name, website, intended users, industry and use cases. If you have no company website, AWS says a portfolio, GitHub profile or project URL is acceptable.

Submission does not always finish at once. The agreement can sit in PENDING, and invoking the model keeps returning AccessDeniedException until it reaches AVAILABLE, even though your submission succeeded. AWS emails you when it completes.

Submit the form, then watch the status

aws bedrock put-use-case-for-model-access --form-data <Base64EncodedFormData>
aws bedrock get-foundation-model-availability --model-id <ModelId> --query '[agreementAvailability.status, authorizationStatus]'

IAM does not cover the model or profile

When availability is AVAILABLE and AUTHORIZED, a remaining denial comes from the caller's own policies or an organization policy. Two patterns are common. First, calling through a cross-Region inference profile ID such as us.anthropic... while the policy names only the foundation model, or only the profile; the policy has to allow both the profile ARN and the foundation model ARN in each Region the profile routes to.

Second, a condition on the permission. AWS notes the first invocation is authorized like any other bedrock:InvokeModel request, so an aws:SourceIp condition must be satisfied by the request that triggers the subscription. It also notes aws:SourceIp is not present when the request goes through a VPC endpoint, so an IP condition can never match there. Read sourceIPAddress in the CloudTrail event to see what AWS recorded.

Profile ARN plus the foundation model in each Region it uses

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": ["bedrock:InvokeModel*"],
    "Resource": [
      "arn:aws:bedrock:us-west-2:111122223333:inference-profile/us.anthropic.claude-3-haiku-20240307-v1:0",
      "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-3-haiku-20240307-v1:0",
      "arn:aws:bedrock:us-west-2::foundation-model/anthropic.claude-3-haiku-20240307-v1:0"
    ]
  }]
}

Service control policies matter too. AWS points out that denying only aws-marketplace:Subscribe does not stop the first call; blocking a model requires a deny on bedrock:InvokeModel.

When activation is complete and it still fails

AWS documents a last case: some models need additional account-level access that finishing activation does not grant, and it is decided per account, so two accounts in one organization can differ. If the checks above pass and the model is supported in your Region, AWS tells you to contact its Sales team. Include the model ID, the Region and the account ID with the request.

Confirm the fix with a real call

  1. Wait out the stated delay (about two minutes after a permission change, 15 minutes for a pending Marketplace agreement).
  2. Run the availability command again and look for AVAILABLE and AUTHORIZED.
  3. Send one small Converse request from the same role your application uses, not from your admin shell.

Smoke test through an inference profile

aws bedrock-runtime converse --model-id us.anthropic.claude-3-haiku-20240307-v1:0 --messages '[{"role":"user","content":[{"text":"ping"}]}]'

In short

  • Commercial Regions enable models on first use; there is no access page to approve.
  • Marketplace actions, a payment method and (for older Anthropic models) the use case form are the three prerequisites.
  • PENDING means wait, not retry harder.
  • Profiles need both the profile ARN and the model ARNs allowed.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.

Next step

Want a second pair of eyes on it?

Send me the error and what changed before it started. I reply within 24 hours.