Skip to content

Conversation

@go-to-k
Copy link
Contributor

@go-to-k go-to-k commented Dec 13, 2025

Fixes #947

This PR adds hotswap support for AWS::Bedrock::AgentRuntime.

This feature can detect both of S3 code files and ECR images changes to deploy with hotswap.

Changes

  1. Added hotswap support for Bedrock Agent Runtime resources
  2. Added @aws-sdk/client-bedrock-agentcore-control dependency
    3. Added yarn resolutions to prevent ESM/CommonJS incompatibility (see the comment for details)
    4. Modified yarn-cling to support yarn resolutions field (see the comment for rationale)

Note on 3 and 4: I chose this approach to resolve build failures after adding the Bedrock SDK, though I'm not certain it's the optimal solution. If there's a better approach, I'd welcome your feedback. See the commit "3904aab4" for details. FYI, I deleted the yarn.lock file and did a clean install again instead of resolutions, but I got the same error.

Tried to revert the commit and modify the lock file manually, build succeeded.

To be specific, after installing @aws-sdk/client-bedrock-agentcore-control, this change was automatically made. I then manually reverted everything except "@aws-sdk/client-bedrock-agentcore-control@^3": (since it was not directly related to that SDK). The build then succeeded.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation aws-cdk-automation requested a review from a team December 13, 2025 15:35
@go-to-k go-to-k force-pushed the hotswap-agentcore-runtime branch from 5155ead to f7ffdf2 Compare December 13, 2025 15:56
@go-to-k go-to-k force-pushed the hotswap-agentcore-runtime branch from f7ffdf2 to b5410fb Compare December 13, 2025 15:58
@go-to-k go-to-k force-pushed the hotswap-agentcore-runtime branch from b5410fb to 66a637d Compare December 13, 2025 16:07
@go-to-k go-to-k force-pushed the hotswap-agentcore-runtime branch from 66a637d to 2637f13 Compare December 13, 2025 16:33
@go-to-k go-to-k force-pushed the hotswap-agentcore-runtime branch from 2637f13 to 6463a62 Compare December 13, 2025 17:32
@go-to-k go-to-k force-pushed the hotswap-agentcore-runtime branch from 558db52 to 6463a62 Compare December 13, 2025 17:41
@go-to-k go-to-k force-pushed the hotswap-agentcore-runtime branch from 6463a62 to 344769d Compare December 13, 2025 17:43
@go-to-k go-to-k marked this pull request as draft December 17, 2025 07:09
@go-to-k go-to-k marked this pull request as ready for review December 17, 2025 07:32
@go-to-k go-to-k marked this pull request as draft December 17, 2025 15:37
@go-to-k go-to-k force-pushed the hotswap-agentcore-runtime branch from ba9a1e2 to 198f20a Compare December 18, 2025 07:34
@go-to-k go-to-k marked this pull request as ready for review December 18, 2025 08:37
@go-to-k go-to-k force-pushed the hotswap-agentcore-runtime branch from 04bbb7c to 234357a Compare December 18, 2025 09:23
build
@go-to-k go-to-k force-pushed the hotswap-agentcore-runtime branch from 234357a to 6cdd150 Compare December 18, 2025 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(hotswap): support hotswap for AWS::BedrockAgentCore::Runtime

2 participants