- Newest
- Most votes
- Most comments
For AWS Lambda functions, you cannot request a specific minor version (like Python 3.9 v101) without using a runtime version ARN. Lambda offers two approaches for runtime management:
-
Auto mode (default): Lambda automatically updates your function to the latest runtime version.
-
Manual mode: You specify a particular runtime version using its ARN.
If you need to use a specific runtime version that your function previously ran successfully with, you would need to:
- Find the runtime version ARN from your function's CloudWatch logs in the INIT_START log line
- Switch to manual runtime management configuration
- Enter that specific runtime version ARN
For AWS App Runner, however, you can specify Python runtime versions using simpler syntax without ARNs. You can lock to different levels:
- Major and minor versions (e.g.,
3.9) - App Runner will only update patch versions - Specific patch version (e.g.,
3.8.5) - App Runner won't update your runtime version at all
To find the current runtime minor version of a Python Lambda function, you can add code to log the version using sys.version. This will show you the full version details, including the minor version information.
Sources
Using the Python platform - AWS App Runner
Troubleshoot Lambda function runtime version errors | AWS re:Post
Learn the differences between Lambda runtime version and runtime identifier | AWS re:Post
Relevant content
asked 8 months ago
asked 6 months ago
- AWS OFFICIALUpdated 4 months ago
