You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: address bnusunny PR review findings for ECS/AgentCore container sync
- sam sync now captures the ECR URI returned by ECRUploader.upload and
registers a new TaskDefinition revision with the updated image, then
updates matching ECS services to that revision (fixes silent no-op)
- Tighten _force_ecs_deployment → _update_services_to_task_definition to
require both the arn:aws:ecs: prefix and :service/ segment, preventing
false matches on App Runner / VPC Lattice / AppMesh ARNs
- Split AgentCore out of ECSContainerSyncFlow: GENERATOR_MAPPING now routes
AWS::BedrockAgentCore::Runtime to _create_agentcore_flow which logs a
clear 'not yet supported' warning and returns None (UpdateAgentRuntime
not yet implemented)
- Add AWS::ECS::TaskDefinition to SyncCodeResources._accepted_resources so
sam sync --code-resource AWS::ECS::TaskDefinition is accepted by Click
- Add ApiCallTypes.UPDATE_CONTAINER_IMAGE enum value; use it in
ECSContainerSyncFlow._get_resource_api_calls instead of UPDATE_FUNCTION_CODE
- Fix multi-container TaskDefinition safety: raise DockerBuildFailed when
>1 ContainerDefinitions and no Metadata.ContainerName (app_builder.py)
- Fix AgentCore _update_built_resource: replace setdefault chain (which
corrupts intrinsics) with direct dict assignment
- Fix isinstance(metadata, dict) guards in _update_built_resource,
_has_container_build_metadata, and ECSTaskDefinitionImageResource
- Update ECSTaskDefinitionImageResource docstring and add LOG.warning for
multi-container fallback (packageable_resources.py)
- Remove dead BuildGraph.CONTAINER_BUILD_DEFINITIONS constant and
get/put_container_build_definition methods (zero callers, not
serialized in _read/_write)
- Add test_ecs_container_sync_flow.py with 17 unit tests covering the
new sync path, ARN filtering, error handling, and tag propagation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments