AI Cloud Architect

Build autonomous AI agents with Amazon Bedrock and Spring AI

AWSHow-to by Viquar Khan and Mahammadali SahebAWS Artificial Intelligence Blog

Learn how Java developers can build production-ready autonomous AI agents using Amazon Bedrock and Spring AI. This post walks through tool calling, conversation memory, resilience patterns, and multi-agent orchestration, then deploys the agent to AWS with Amazon Bedrock AgentCore.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Java developers get a walkthrough for building tool-calling, memory-backed AI agents with Spring AI on Amazon Bedrock and deploying them to AgentCore runtime.

Who it is for

Java teams running enterprise workloads that need to take agents from prototype to production on AWS.

Key points

  • Verified with Anthropic Claude Sonnet 4.5 on Amazon Bedrock; the post notes other model families may behave differently.
  • Requires JDK 21, Spring Boot 4.1, Spring AI 2.0 and spring-ai-agentcore 2.0.
  • Deployment uses Terraform and an ARM64 container image; AgentCore runtime scales to zero and bills per invocation.

Timeline

  1. What it explainsSpring AI SDK for Amazon Bedrock AgentCore is now Generally Available · AWS · Blog post
  2. This postBuild autonomous AI agents with Amazon Bedrock and Spring AI

Go deeper