Skip to content

Maintenance: drop support for Python 3.10 on February 1, 2027 #8735

Open

Description

@leandrodamascena

Why is this needed?

Important

Starting from February 1, 2027 Powertools for AWS Lambda (Python) will no longer support Python 3.10.

AWS Lambda marked the python3.10 runtime as deprecated on October 31, 2026, and CPython 3.10 reached end of life the same month, so it no longer receives security fixes. We are giving three months from that date before we remove it from our build.

What this means:

  • The first release on or after February 1, 2027 will require Python 3.11 or newer (requires-python >= 3.11), will not be tested on 3.10, and the public Lambda layer will stop being published for python3.10.
  • Existing functions keep working. Versions of Powertools for AWS Lambda (Python) released before that date keep working on 3.10; pin to the last one if you need more time. We just stop guaranteeing compatibility from then on.
  • Lambda itself will block creating new python3.10 functions on July 29, 2027 and updating them on August 31, 2027, so the upgrade is coming either way.

We recommend upgrading your Python 3.10 functions to Python 3.12 or newer. To list the functions still on the runtime, run this in each region you use:

aws lambda list-functions --function-version ALL --region <Region> --output text --query "Functions[?Runtime=='python3.10'].FunctionArn"

Which area does this relate to?

Automation

Solution

Tracked here, one PR when the date comes: bump requires-python and the classifiers in pyproject.toml, remove 3.10 from the quality_check matrix and from layer_v3 (Dockerfile, install_libraries.sh, layer_stack.py, canary_stack.py), update docs/getting-started/install.md, docs/upgrade.md and docs/automation.md, and the Python badge in the README. Same shape as #8439, which retired 3.9.

Acknowledgment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationinternalMaintenance changes

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions