Amazon Linux 2 end-of-life: migration checklist (AL2 → AL2023)
Amazon Linux 2 reaches end of life 2026-06-30. After that: no security patches, no new AMIs, no extras updates. Anything still pinned to AL2 in a launch template, EKS node group, ECS task, Beanstalk env, or container base image runs unpatched. [AWS source]
Inventory. Find every AL2 AMI, launch template, EKS node group, ECS task definition, Beanstalk platform, and container base image. (free scan or the al2023-gate CLI.)
Rebuild the base AMI on AL2023 (Packer/EC2 Image Builder), then bake your app layers on top.
Package manager. Move yum usage to dnf and drop amazon-linux-extras — install packages directly, version-namespaced, or via SPAL. (extras fix · missing-package fix)