high

Lambda Python 3.9 EOL

2027-02-01

223 days until the 2027-02-01 deadline — enough runway to migrate safely.

What is being deprecated?

Python 3.9 Lambda runtime (Amazon Linux 2) was deprecated on 2025-12-15 (no further security patches). Per the AWS Lambda runtime deprecation table, AWS blocks creating new python3.9 functions on 2027-02-01 and blocks updating existing ones on 2027-03-03. Functions keep running, but become unpatched and unmodifiable after the block dates.

Deadline2027-02-01 (223 days from build date 2026-06-23)
ServiceAWS Lambda
Affected resourcesfunction
Severityhigh
Migration kitpython-pivot (free, MIT)
Primary sourcehttps://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html

Every fact on this page is taken from the cited AWS / upstream source above. EOLkits ships no claim without a primary source.

Breaking changes

The following changes take effect at or before the 2027-02-01 deadline. [source]

  • distutils module removed
  • imp module removed
  • collections.Mapping deprecated
  • Native wheels may not be available

Migrate with the free python-pivot CLI

The MIT-licensed CLI runs the same five-step migration on every deprecation: scan, fix, test, deploy canary, rollback. No AWS credentials needed for the offline fixture run.

Scan your infrastructure

Enumerate every resource still on the deprecated runtime.

pip install python-pivot
python-pivot scan --region us-east-1

Review findings by severity × blast radius

The scan prints a table ordered by how much breaks and how soon.

Apply codemods (dry-run first)

Mechanically-safe rewrites for the breaking changes above. Everything ambiguous is flagged, not auto-changed.

python-pivot apply --dry-run
python-pivot apply

Deploy with a staged canary + auto-rollback

5% → 25% → 50% → 100%, with a CloudWatch-alarm trip reverting instantly.

Want it done for you before 2027-02-01?

Migration Pack

$1,499

A real PR opened on your repo: python-pivot codemods + IaC patches + canary plan + rollback. Auto-refund if your CI fails within 7 days.

Get Migration Pack — $1,499 How it works

Not ready to migrate yet?

Get a reminder before the 2027-02-01 Lambda Python 3.9 EOL deadline — plus a heads-up on the next AWS EOL that hits your stack. No spam, one email per relevant deadline.

Free. Unsubscribe anytime.

Embed this deadline in your README

Drop a deadline badge into any repo still affected. It links back to this page, so your team — and anyone reading the repo — stays aware of the 2027-02-01 cutoff.

Lambda Python 3.9 EOL deadline badge

[![Lambda Python 3.9 EOL deadline](https://eolkits.com/badge/lambda-python-3.9-eol.svg)](https://eolkits.com/migrate/lambda-python-3.9-eol/)

Frequently asked questions

When is the Lambda Python 3.9 EOL deadline?

2027-02-01. Python 3.9 Lambda runtime (Amazon Linux 2) was deprecated on 2025-12-15 (no further security patches). Per the AWS Lambda runtime deprecation table, AWS blocks creating new python3.9 functions on 2027-02-01 and blocks updating existing ones on 2027-03-03. Functions keep running, but become unpatched and unmodifiable after the block dates. [AWS source]

What happens if I don't migrate by 2027-02-01?

The breaking changes listed above take effect: distutils module removed; imp module removed; collections.Mapping deprecated; Native wheels may not be available. [source]

Which AWS services does this affect?

AWS Lambda — specifically function resources.

Is there a free way to migrate?

Yes — the python-pivot CLI is MIT-licensed and free for unlimited runs. The paid Audit ($299) and Migration Pack ($1,499) tiers add a hash-anchored report and an automated PR with a CI-failure refund guarantee.