Amazon Bedrock AgentCore provides managed container runtimes for AI agents that need long-running compute, session affinity, and background processing. It spins up a microVM per session, keeps it warm across messages from the same user, and shuts it down after an idle timeout. This skill covers using AgentCore to build a Telegram bot that invokes Claude to make code changes, with an async entrypoint pattern that returns fast while the agent works in the background.
- AgentCore Runtime: A container-based compute environment managed by Bedrock. You provide a Docker image with your agent code, and AgentCore handles provisioning, scaling, and lifecycle.
- Runtime Session: Each unique
runtimeSessionIdgets its own dedicated microVM. The session persists (workspace, memory, processes) until idle timeout or explicit termination. - Session Affinity: Route subsequent requests from the same user to the same containe