Versioning and Releasing Agents Through Pipelines
This lesson explains how agents, whose instructions, tools, models and code change often, get the same release discipline as models and applications, with versions, automated tests and safe promotion and rollback.
Learning outcomes
After completing this lesson, you will be able to:
- Use versions and aliases in Bedrock Agents.
- Version agents in AgentCore Runtime.
- Build automated agent pipelines with rollback.
Versions and aliases in Bedrock Agents
A Bedrock agent has a working draft (DRAFT) that is edited and tested. Preparing the agent and creating a version takes an immutable snapshot of its configuration. An alias points to a version, and applications invoke the alias. Promoting a new version or rolling back means updating the alias to point to another version, with no application change. Typical aliases are dev, staging and prod.
The following diagram shows the versions and alias of a support agent and how a faulty release is rolled back.

Versions and aliases
Versions in AgentCore Runtime
AgentCore Runtime agents are versioned in a similar way to Bedrock Agents. Each update of an agent creates a new, immutable version, and endpoints point to specific versions. A default endpoint follows the latest version, which suits development.
Named endpoints, such as prod, are moved to a new version explicitly, after testing, which gives the same promotion and rollback control as aliases: rolling back means pointing the endpoint at the previous version.
Automated agent pipelines
A CI/CD pipeline for agents typically: builds the agent container or configuration from the repository; runs unit tests on tool code; deploys a new version to a test alias or endpoint; runs an evaluation suite of scenarios scored for task success, correct tool use, safety and cost (with LLM-as-a-judge or AgentCore Evaluations); requires approval; then moves the production alias or endpoint. The previous version stays available for instant rollback. The following table summarises the mechanisms.
| Platform | Immutable unit | Pointer used by applications | Rollback |
|---|---|---|---|
| Bedrock Agents | Version | Alias | Point alias to previous version |
| AgentCore Runtime | Version | Endpoint | Point endpoint to previous version |
| Prompts (Prompt Management) | Prompt version | Version ARN in config | Reference previous version |
An agent release pipeline
A bad release
After version 12 of a support agent is promoted, the share of conversations ending with a tool error rises from 2% to 11%: a changed action-group schema renamed a parameter.
- Roll back immediately by pointing the
prodalias to version 11. - Add an evaluation scenario that calls the changed tool and checks for success.
- Add a CloudWatch alarm on tool error rate for the alias that blocks promotion in the pipeline.
Because applications call the alias, rollback took seconds and needed no redeployment of client code. Had applications called the draft directly, the faulty change would have reached users as soon as it was saved.
How is an agent release rolled back?
Show answer
By pointing the alias or endpoint back to the previous immutable version.
Exam Tips
Remember for the exam
- Applications should call agent aliases or endpoints, never the draft.
- Promote or roll back by repointing the alias or endpoint.
- Agent versions are immutable snapshots.
- Run scenario evaluations before promoting a new version.
- Alarm on tool error rates per version.