{"id":17144,"date":"2025-12-16T17:34:02","date_gmt":"2025-12-16T12:04:02","guid":{"rendered":"https:\/\/www.skynats.com\/?p=17144"},"modified":"2025-12-16T17:34:05","modified_gmt":"2025-12-16T12:04:05","slug":"how-to-update-python-runtime-version-in-aws-lambda-using-aws-console","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/how-to-update-python-runtime-version-in-aws-lambda-using-aws-console\/","title":{"rendered":"How To Update Python Runtime Version In Aws Lambda (using Aws Console)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading has-small-font-size\" id=\"h-introduction\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">AWS Lambda supports multiple Python runtime versions, and AWS periodically deprecates older versions while introducing newer, more secure, and better-performing ones. Updating your Lambda function\u2019s Python version helps you update Python runtime version in <a href=\"https:\/\/aws.amazon.com\/\" target=\"_blank\" rel=\"noopener\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-secondary-color\">AWS <\/mark><\/a>Lambda to ensure better performance, security patches, and long-term compatibility.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this blog, we\u2019ll walk through how to update a Lambda function\u2019s Python runtime version using the AWS Management Console (frontend) \u2014 no CLI or code changes required.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-small-font-size\" id=\"h-prerequisites\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before proceeding, ensure:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You have access to the <strong>AWS Management Console<\/strong><\/li>\n\n\n\n<li>You have permissions to <strong>modify Lambda functions<\/strong><\/li>\n\n\n\n<li>Your application dependencies are compatible with the target Python version<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading has-small-font-size\">Step-by-Step Guide: Update Python Version via AWS Console<\/h2>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\"><strong>Step 1: Log in to AWS Console<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to the <strong>AWS Management Console<\/strong><\/li>\n\n\n\n<li>Sign in with your AWS credentials<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\"><strong>Step 2: Navigate to Lambda Service<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the AWS Console, search for <strong>Lambda<\/strong><\/li>\n\n\n\n<li>Click on <strong>Lambda \u2192 Functions<\/strong><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\"><strong>Step 3: Select Your Lambda Function<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>From the list of functions, click on the <strong>Lambda function<\/strong> you want to update<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\"><strong>Step 4: Edit Runtime Settings<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Scroll to the <strong>Runtime settings<\/strong> section<\/li>\n\n\n\n<li>Click on <strong>Edit<\/strong><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\"><strong>Step 5: Change the Python Runtime Version<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Under <strong>Runtime<\/strong>, select the required Python version\n<ul class=\"wp-block-list\">\n<li>Example: Python 3.9 \u2192 Python 3.11<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Click <strong>Save<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The runtime version is updated immediately.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-small-font-size\">Post-Update Checks (Important)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\"><strong>1. Verify Function Execution<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to the <strong>Test<\/strong> tab in the Lambda console<\/li>\n\n\n\n<li>Run a test event to ensure the function executes successfully<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\"><strong>2. Check CloudWatch Logs<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to <strong>Monitor \u2192 View logs in CloudWatch<\/strong><\/li>\n\n\n\n<li>Look for any runtime or dependency-related errors<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\"><strong>3. Validate Dependencies and Layers<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure all Python libraries support the updated runtime<\/li>\n\n\n\n<li>If Lambda Layers are used, confirm they are built for the same Python version<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\">Conclusion<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Updating the Python runtime version of an AWS Lambda function via the AWS Console is a quick and straightforward process. However, it\u2019s important to validate dependencies and thoroughly test the function after the upgrade to avoid runtime issues.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Keeping your Lambda functions on supported Python versions ensures better performance, security, and long-term stability.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Tip:<\/strong> Always test the update in a staging environment before applying changes to production.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you need to update Python runtime version in AWS Lambda and want the process reviewed before applying it in production, having experienced oversight can be useful. Teams providing <a href=\"https:\/\/www.skynats.com\/aws-management\/\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-secondary-color\">AWS Management Services<\/mark><\/a>, such as Skynats, typically assist with runtime compatibility checks, safe updates through the AWS Console, and post-update validation\u2014a practical option when accuracy and stability matter.<br><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction AWS Lambda supports multiple Python runtime versions, and AWS periodically deprecates older versions while introducing newer, more secure, and better-performing ones. Updating your Lambda function\u2019s Python version helps you update Python runtime version in AWS Lambda to ensure better performance, security patches, and long-term compatibility. In this blog, we\u2019ll walk through how to update [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[722,835,1006,329,1195],"class_list":["post-17144","post","type-post","status-publish","format-standard","hentry","category-blog","tag-aws","tag-aws-lambda","tag-aws-management-services","tag-python","tag-python-runtime-version"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/17144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=17144"}],"version-history":[{"count":1,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/17144\/revisions"}],"predecessor-version":[{"id":17145,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/17144\/revisions\/17145"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=17144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=17144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=17144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}