How to Solve dependencyFailedException on AWS Bedrock

I am a french Developer, working for a french startup :) i like video games, computers and drinking Ricoré
Search for a command to run...

I am a french Developer, working for a french startup :) i like video games, computers and drinking Ricoré
No comments yet. Be the first to comment.
AWS Bedrock AgentCore lets you deploy agents as managed containerized runtimes. This guide shows how to automate this deployment using Pulumi and Docker. What You'll Deploy Docker container with your agent code Amazon ECR to store the image Bedroc...

Introduction This guide shows how to deploy AWS Bedrock Agents using Pulumi and TypeScript. Prerequisites AWS Account with Bedrock access Node.js and npm installed Pulumi CLI installed Project Setup Generate Project with Pulumi pulumi new aws-t...

Starting My Homelab Journey with a Raspberry Pi 4B

I recently discovered Docker compose profiles and wanted to share it as it can be useful to someone else. Docker Compose profiles let you control which services run without modifying your docker-compose.yml. They’re useful for separating optional s...

These days, i’m using AWS Bedrock to create Agents.
And i faced this error when testing my agents many times so i decided to write down the workaround that i found.
An error occurred (dependencyFailedException) when calling the InvokeAgent operation: Dependency resource: received model timeout/error exception from Bedrock. Try the request again
I’m using Pulumi to deploy my agent like this:
const agent = new aws.bedrock.AgentAgent("pulumi-example-agent", {
agentName: "pulumi-example-agent",
description: "Pulumi example agent with Lambda integration",
agentResourceRoleArn: `${roleArn}`,
idleSessionTtlInSeconds: 500,
foundationModel: "arn:aws:bedrock:eu-west-1:XXXXXXXXXXXXXXX:inference-profile/eu.amazon.nova-pro-v1:0",
instruction: `You are a helpful assistant that can answer questions and help with tasks.`,
})
I had no issue on the deployment using Github Actions.
But when i tried to chat with my agent, i got the error.
After trying many things, i decided to swap out the Nova model for a Mistral one.
const agent = new aws.bedrock.AgentAgent("pulumi-example-agent", {
agentName: "pulumi-example-agent",
description: "Pulumi example agent with Lambda integration",
agentResourceRoleArn: `${roleArn}`,
idleSessionTtlInSeconds: 500,
foundationModel: "arn:aws:bedrock:eu-west-1:XXXXXXXXXXXXXXX:inference-profile/eu.mistral.pixtral-large-2502-v1:0",
instruction: `You are a helpful assistant that can answer questions and help with tasks.`,
})
Redeployed targeting the new model, and … it worked !
No more weird error !
So if you face that issue, just ditch the Amazon Nova model for another one !
See you in the next one ;)