@shinyaz

AgentCore Runtimeのコード構成でentryPointに「python3 main.py」を指定するとバリデーションエラーになる

約1分

AgentCore Runtimeのコード構成でentryPoint["python3", "main.py"]にしたらエラーになった。

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.

次に["main"](拡張子なし)を試したら別のエラー。

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

正解は["main.py"]だった。ランタイムにPYTHON_3_13を指定しているので、python3コマンドは不要で、.py拡張子付きのファイル名だけを渡す。

共有する

田原 慎也

田原 慎也

ソリューションアーキテクト @ AWS

AWS ソリューションアーキテクトとして金融業界のお客様を中心に技術支援を行っています。クラウドアーキテクチャや AI/ML に関する学びをこのサイトで発信しています。このサイトの内容は個人の見解であり、所属企業の公式な意見や見解を代表するものではありません。