EC2 instances on Amazon Linux 2 — end of support was Jun 30, 2026
AWSDeprecations & retirementsTeam planSeverity: high
aws.ec2EC2 instances launched from an Amazon Linux 2 AMI (amzn2-ami-*); Amazon Linux 2 reached end of support on June 30, 2026
What LeftSize checks
Find running or stopped EC2 instances launched from an Amazon Linux 2 AMI (AMI name starting with "amzn2-ami-", the documented AL2 naming scheme, including ECS-optimized AL2 AMIs).
Why it matters
Missed retirement and end-of-support dates turn into forced upgrades, outages or extended support charges at a moment you did not choose.
What you get in the GitHub issue
LeftSize runs this check from a scheduled GitHub Action with a read-only identity in your AWS account and opens one issue per scope, updated on every scan. The issue includes:
- The affected resources, grouped per subscription, resource group or account and region
- Background on why it was flagged and when it is a false positive
- Cost and operational impact of fixing it
- Step-by-step remediation with safety checks
- Ready-to-run fix scripts (CLI, PowerShell or Terraform where available)
- Alternative approaches and their trade-offs
- Snooze, ignore or report a finding with a comment on the issue
Install LeftSizeIncluded in the Team and Business plans.