[Bug]: Lambdas pin the previous AgentCore runtime version until a second apply

Closed
#710 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@JWThewes is already working on this.

Since Nov 11, 2026.

  • #721 by @JWThewes — merged

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
aws, javascript, terraform

Research direction

Start by tracing CORE_RUNTIME_VERSION on the intents and managed-environment Lambdas to module.agentcore.runtime_version and the awscc_bedrockagentcore_runtime.stage_executor resource. Check how the runtime version is read after a configuration update and how the deploy test runs a second plan. Done means one apply updates the Lambdas to the newly created runtime version and the second plan is empty.

Written by the indexing model from the issue text.

Description

area/infra nfr/reliability topic/intents

CORE_RUNTIME_VERSION on the intents and managed-environment Lambdas comes from module.agentcore.runtime_version, which reads awscc_bedrockagentcore_runtime.stage_executor.agent_runtime_version. When an apply changes the runtime configuration, the runtime gets a new version, but the Lambdas keep the version they had before the apply. Only the next plan shows the update, for example 47 → 48.

Between the two applies, every new intent starts on the previous runtime version. In our case that version still carried the environment of a resource the same apply had deleted.

Expected: one apply leaves the Lambdas on the runtime version it created, so a second plan is empty. Options include reading the version only after the runtime update completes, or resolving the latest version when the intent starts. A deploy test that asserts the second plan is empty would catch a regression.

Dominant language
JavaScript
Stars
128
Forks
62
Avg merge
3d 16h
Merged PRs (30d)
102

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws-samples/sample-collaborative-ai-dlc

All issues in aws-samples/sample-collaborative-ai-dlc

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.