@shinyaz

AgentCore Runtime code config entryPoint rejects 'python3 main.py' — just use ['main.py']

1 min read

Tried setting entryPoint to ["python3", "main.py"] in an AgentCore Runtime code configuration. Got:

An error occurred (ValidationException) when calling the CreateAgentRuntime operation: Invalid entrypoint value. Your entrypoint is either empty, contains spaces, starts with /, ~, ., .., or has multiple dots. Update the entrypoint name and try again.

Then tried ["main"] (no extension):

Entrypoint file type does not match your selected runtime. For Python runtime, your file should end with .py extension.

The answer is ["main.py"]. When using a Python runtime like PYTHON_3_13, you don't need the python3 command — just the filename with .py extension.

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.