AgentCore Runtime code configuration requires ZIP format on S3
1 min read
Tried creating an AgentCore Runtime with code configuration by uploading main.py directly to S3. Got this:
An error occurred (ValidationException) when calling the CreateAgentRuntime operation: S3 object must be in .zip format. ZIP your code and try again.Fix: zip agent.zip main.py before uploading. Even with code configuration (not container), the S3 object must be a ZIP archive.
