When using deployment_type: zip in config.yaml, the AgentCore Runtime fails to start and returns:
HTTP 424: {"message":"Runtime initialization time exceeded. Please make sure that initialization completes in 30s."}
After checking CloudWatch logs for the AgentCore Runtime, you can see multiple ModuleNotFoundError crashes at startup:
ModuleNotFoundError: No module named 'tools.gateway'
followed by:
ModuleNotFoundError: No module named 'agentcore_tools'
Steps to replicate:
- Set deployment_type: zip in infra-cdk/config.yaml
- Run cdk bootstrap & cdk deploy
- Deploy frontend
- Open the web app and send any message
- Observe HTTP 424 in the UI and ModuleNotFoundError in CloudWatch as well as the error in the frontend
When using
deployment_type: zipinconfig.yaml, the AgentCore Runtime fails to start and returns:HTTP 424: {"message":"Runtime initialization time exceeded. Please make sure that initialization completes in 30s."}After checking CloudWatch logs for the AgentCore Runtime, you can see multiple ModuleNotFoundError crashes at startup:
ModuleNotFoundError: No module named 'tools.gateway'followed by:
ModuleNotFoundError: No module named 'agentcore_tools'Steps to replicate: