はじめに
こんにちは。
インフラエンジニアをしているアリガです。
今回は、AWSでのLambda Python 3.9 ランタイムのEOLを確認する方法を見ていきたいと思います。
確認方法
Lambda Python 3.9 の「標準サポート終了日」については、2025年12月15日予定となり以下のページの表にまとめられています。
ドキュメント>AWS Lambda>デベロッパーガイド>Lambdaランタイム
2025年12月15日以降、LambdaはLambda関数が使用するPython 3.9ランタイムにセキュリティパッチやその他の更新を適用しなくなり、Python 3.9使用する関数はテクニカルサポートの対象外となります。
・2026年2月3日以降、Python 3.9ランタイムを使用して新しいLambda関数を作成することは出来なくなります。
・2026年3月9日以降、Python 3.9ランタイムを使用して既存の関数は更新出来なくなります。
Lambdaランタイム変更方法
Lambdaランタイムの変更方法はCLIとAWSコンソールからと色々あるようです。
■AWSコンソールからの変更方法は以下を参照します。
https://docs.aws.amazon.com/ja_jp/lambda/latest/dg/configuration-function-zip.html#configuration-function-runtime
■CLIから実施する場合は、update-function-configurationを利用します。
ランタイムを変更する場合は、--runtime オプションを使用します。
--function-nameは適宜読み替えて下さい。ランタイムはpython3.13にアップデートを試しました。
https://docs.aws.amazon.com/lambda/latest/api/API_UpdateFunctionConfiguration.html
▼ランタイム確認コマンド
aws lambda get-function-configuration --function-name update-function-test --query "{FunctionName:FunctionName, Runtime:Runtime}" --output table
▼ランタイムアップデートコマンド
aws lambda update-function-configuration --function-name update-function-test --runtime python3.13
参考情報




