@shinyaz

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.

Share this post

Shinya Tahara

Shinya Tahara

Solutions Architect @ AWS

I'm a Solutions Architect at AWS, providing technical guidance primarily to financial industry customers. I share learnings about cloud architecture and AI/ML on this site.The views and opinions expressed on this site are my own and do not represent the official positions of my employer.