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.
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
ListFoundationModelAgreementOffersfollowed byCreateFoundationModelAgreementthrough 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.
For more information, see the Access Amazon Bedrock foundation models page in the Amazon Bedrock documentation.