ladderlore
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

သဘောတရား

Agent deployment pipelines and versions

Ship agents with IaC, test a new version, then flip the alias or endpoint, and roll back.

ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။

Source repository
CodePipeline
IaC deploy
Test the new version
Move alias or endpoint
Rollback
Rollback
  1. 1A commit starts the pipeline.
  2. 2CodePipeline runs the build and tests.
  3. 3IaC deploys the new agent version.
  4. 4The tests pass, and the alias or endpoint moves to the new version.
Deploy, test, flip. The previous version stays for rollback.
  • 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
Versions and pointers on the two platforms.

ဘာလဲ

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.