概念
Agent deployment pipelines and versions
Ship agents with IaC, test a new version, then flip the alias or endpoint, and roll back.
本课尚未翻译,暂以英文显示。
- 1A commit starts the pipeline.
- 2CodePipeline runs the build and tests.
- 3IaC deploys the new agent version.
- 4The tests pass, and the alias or endpoint moves to the new version.
Agents Classic
- Version
- DRAFT, then numbered versions
- Pointer
- Alias
- Rollback
- Point the alias at the old version
AgentCore Runtime
- Version
- New immutable version on each update
- Pointer
- Endpoint, DEFAULT follows latest
- Rollback
- Update a named endpoint to the old version
| Platform | Version | Pointer | Rollback |
|---|---|---|---|
| Agents Classic | DRAFT, then numbered versions | Alias | Point the alias at the old version |
| AgentCore Runtime | New immutable version on each update | Endpoint, DEFAULT follows latest | Update a named endpoint to the old version |
是什么
Treat an agent like any release. Keep its definition in code, in CloudFormation or the AWS CDK: instructions, action groups, the knowledge base link, Lambda functions, roles and the container image for AgentCore Runtime. A pipeline (CodePipeline with CodeBuild) deploys the stack to a test account, runs tests, and then promotes the same template to production with different parameters. Same template and different parameters is what makes accounts alike.
是什么
Versions and a pointer make switching safe. For Bedrock Agents Classic, you edit the DRAFT, create a numbered version and point an alias at it. For AgentCore Runtime, each update creates a new immutable version. The DEFAULT endpoint follows the latest version at once, so production should use a named endpoint that you move on purpose.
是什么
The release is test, then flip. Run the evaluation and safety tests on the new version through the test alias or a test endpoint. When they pass, update the production alias or endpoint to the new version. To roll back, point it back at the previous version, which still exists. Keep the previous version until the new one has proved stable.
要记住
- Agent definition in IaC. One template, different parameters per account.
- A pipeline deploys, tests and promotes.
- Agents Classic: DRAFT, numbered versions, aliases.
- AgentCore Runtime: immutable versions and endpoints.
- The DEFAULT endpoint tracks the latest version. Use a named endpoint for production.
要记住
- Roll back by pointing the alias or endpoint at the previous version.
考试中
- “Switch production traffic to a new agent version without changing the client” points to moving an alias or an endpoint.
- “Production agent changed by itself after an update” points to using the DEFAULT endpoint, which follows the latest version.
- “Revert a bad agent release fast” points to pointing the alias or endpoint back at the earlier version.
本任务内容 · 3.3
- Deployment strategies and rollback
CodePipeline
CodeBuild
CodeDeploy
SageMaker Pipelines
- Automated testing in ML pipelines
- Triggering retraining
Model Registry
Prompt Management
- Agent deployment pipelines and versions
- AI model and prompt testing
- Automating FM deployment and fine-tuned model versions
- RAG update and knowledge base refresh pipelines
Step Functions