- Newest
- Most votes
- Most comments
Based on your description, you're encountering a common issue with Bedrock Agents when using Amazon models. The error "Dependency resource: received model timeout/error exception from Bedrock" typically occurs when there's an issue with how the model interacts with your agent components.
One common cause of this error is related to naming conventions in your action groups. Specifically, if you have hyphens ("-") in your action group name, this can cause the error you're seeing. Try replacing any hyphens with underscores ("_") in your action group names.
For example, change:
agent-action-group
To:
agent_action_group
This issue appears to be connected to the toolSpec.name regex that doesn't allow hyphens, but unfortunately, there's no clear error message about this limitation.
If you've already checked your action group naming and that's not the issue, you might also want to:
- Verify permissions between your Bedrock Agent and Lambda function
- Check if your Lambda function is timing out
- Ensure your AWS SDK version is up-to-date
- Try implementing more extensive logging to pinpoint where the error occurs
Some users have reported that this issue occurs specifically with certain Amazon Nova models but not with other models like Claude 3.5 or Titan Text. If possible, you might want to temporarily test with a different model to see if the issue persists.
Sources
Issue with Bedrock Agents and Lambda Function – Model Timeout/Error | AWS re:Post
Service unavailable exception thrown for one agent, but not for multi-agent amazon bedrock | AWS re:Post
answered 10 months ago
Relevant content
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a month ago

Hyphen works, underscore did not work.