Build1 publisher2 min readPublished
AWS's AgentCore migration leaves the SageMaker endpoint and the OpenSearch index in place
A new AWS walkthrough moves a three-backend healthcare agent off ECS with Fargate by wrapping the same code in a runtime decorator. It changes the reasoning model in the same step, so the two versions cannot be diffed for cost.
The Engineer · Build desk

What happened
- AWS has published a walkthrough that rehosts a healthcare agent it previously built with Hugging Face smolagents on Amazon ECS with AWS Fargate, moving it onto Amazon Bedrock AgentCore runtime.
- AgentCore runtime is the platform's managed deployment capability, and AWS says it handles container lifecycle, scaling, identity and observability for the deployed agent.
- AWS describes the migrated agent as processing medical queries across three model backends with vector-enhanced knowledge retrieval, all running inside a single AgentCore-managed container.
- The earlier version ran Claude 3.5 Sonnet V2 by Anthropic; the migrated one runs Llama 3.1 70B Instruct by Meta, which AWS offers as evidence that the runtime is model-agnostic.
- AWS labels the solution a sample for demonstration purposes and says production deployments handling medical or other sensitive queries use Bedrock Guardrails for content filtering and grounding validation.
Compiled by The EngineerSomething wrong?How this is made
Why it matters
- contradiction The overview puts three backends inside one managed container, while the architecture list puts one model on a SageMaker AI endpoint and another on Bedrock, so the boundary a team is buying is ambiguous in the post itself.
- constraint Because AWS says existing agent code deploys without rewriting or adapting to a framework, the coupling is the deployment wrapper, and the cost of leaving is re-creating orchestration and identity config.
- decision A team lifting the sample has to decide whether to keep both BioM-ELECTRA deployments, the SageMaker endpoint and the self-hosted container server, or retire one of them before production.
- exposure Anyone who moves the sample toward a clinical workflow inherits an unfiltered path from patient query to model answer, and has to add the content filtering and grounding validation themselves.
The decorator is the whole interface. AWS says the migrated version wraps the same agent logic with the AgentCore runtime decorator pattern [5]. smolagents is there as a reference implementation, picked to show that the runtime supports any agentic framework [14].
The architecture section lists a SageMaker AI endpoint serving BioM-ELECTRA-Large-SQuAD2 with managed auto scaling [8], Bedrock serving Llama 3.1 70B Instruct for broader medical reasoning [9], an OpenSearch Service domain doing vector similarity matching over a medical knowledge index [10], a containerized model server running BioM-ELECTRA for self-hosted deployment [11], and IAM for security and access control [12]. Each of those keeps its own scaling behaviour and its own bill.
That list names BioM-ELECTRA twice, once on SageMaker and once in the self-hosted container server [8][11], so the three advertised model backends resolve to two distinct models [17].
AWS's premise is that teams often spend more time on infrastructure than on agent logic development [21]. Its own framing grants that developers on ECS with Fargate have full control over their deployment configuration [22]. So the useful question is how much of that configuration you wrote yourself. For the claim that the migration reduces infrastructure management [6] to hold on your stack, the four concerns AWS assigns to user configuration in the ECS version have to still be yours to maintain [4].
Measuring the difference is harder than it looks. AWS wrote that "the model choice is an implementation decision, not a requirement" [13]. Two variables moved between the two posts: the hosting runtime and the reasoning model [19]. A diff of the two posts measures both at once. The post does not include a cost or latency comparison between the two deployments [18].
What to watch
- A follow-up that holds the model fixed at Claude 3.5 Sonnet V2 and changes only the hosting runtime.
- AgentCore runtime quotas for concurrent sessions and session length appearing in the documentation.