Skip to content

ZIP deployment fails with HTTP 424 "Runtime initialization time exceeded" #93

Description

@naumaanh

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:

  1. Set deployment_type: zip in infra-cdk/config.yaml
  2. Run cdk bootstrap & cdk deploy
  3. Deploy frontend
  4. Open the web app and send any message
  5. Observe HTTP 424 in the UI and ModuleNotFoundError in CloudWatch as well as the error in the frontend

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions