Troubleshooting

This section provides solutions to common issues you might encounter when using TwelveLabs models on Amazon Bedrock.

Model invocation fails with AccessDeniedException

Problem: You receive an AccessDeniedException error when invoking a TwelveLabs model.

Cause: The model isn’t enabled for your account. Amazon Bedrock automatically attempts to enable models on first invocation, but you don’t have the required AWS Marketplace permissions.

Solution: An administrator or a user with AWS Marketplace permissions must enable the model model as a one-time step. After enablement, all users in the account can invoke the model.

1

Enable the model

Choose one of the following methods:

  • An administrator with AWS Marketplace API permissions invokes the model in any supported region, or calls ListFoundationModelAgreementOffers followed by CreateFoundationModelAgreement through the AWS API.
  • You assume an IAM role that has AWS Marketplace permissions, invoke the model to enable it for your account, then switch back to your original IAM role.
2

Retry your request

Invoke the model again. The model is now enabled across all supported regions for all users in your account. If the error persists, wait 15 minutes for the system to update due to caching, then retry your request.

For more information, see the Access Amazon Bedrock foundation models page in the Amazon Bedrock documentation.