Repository navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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
CfnRuntimecreated withoutplatformVersioncan come up as V2. Per the PR, V2 starts the single-line Alpine container duringCREATING, the container exits, and the health check fails. The AgentCore developer guide says the opposite: "If you omitplatformVersionwhen 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 theNotStabilizedfailure in #2185 has another cause. The issue lists several: a slow first pull from public ECR, AgentCore-side stabilization, IAM propagation, and theAccessDeniedonlogs: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 /invocationson:8080), like the aws-cdk V2 integ fixtures, would make the test pass on both platform versions.