Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ class AgentCoreHotswapStack extends cdk.Stack {

const runtime = new bedrockagentcore.CfnRuntime(this, 'Runtime', {
agentRuntimeName: 'test_runtime',
platformVersion: 'V1',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Recommended — This fix assumes a CfnRuntime created without platformVersion can come up as V2. Per the PR, V2 starts the single-line Alpine container during CREATING, the container exits, and the health check fails. The AgentCore developer guide says the opposite: "If you omit platformVersion when you create a runtime, the runtime uses V1" (runtime-how-it-works). The PR cites no source for a V2 default, and it is unclear whether the docs or the service behavior it describes is current. If the docs are right, this line changes nothing and the NotStabilized failure in #2185 has another cause. The issue lists several: a slow first pull from public ECR, AgentCore-side stabilization, IAM propagation, and the AccessDenied on logs:CreateLogGroup. This PR rules out none of them.

Suggested change: Bring the PR's premise and the documented behavior into line. If the service really defaults to V2 in some regions or accounts, cite a source in the PR so reviewers can see the pin targets the real cause (the developer guide would then need correcting). If the docs are current, treat the root cause of #2185 as still open and don't present the pin as the fix. Either way, a fixture image that serves the AgentCore HTTP contract (GET /ping, POST /invocations on :8080), like the aws-cdk V2 integ fixtures, would make the test pass on both platform versions.

roleArn: role.roleArn,
networkConfiguration: {
networkMode: 'PUBLIC',
Expand Down
Loading