{
  "schemaVersion": "ebb.rule.v1",
  "id": "container.host-amazon-linux.eol-2-and-older",
  "ecosystem": "container",
  "purl": "pkg:generic/amzn",
  "affectedVersions": "vers:semver/<2023.0.0",
  "event": "end-of-life",
  "severity": "high",
  "title": "Amazon Linux 2 and the 2018.03 AMI are past end of support",
  "summary": "Amazon Linux 2 reached the end of standard support on 2026-06-30, and Amazon Linux AMI 2018.03 ended support on 2023-12-31. Amazon Linux 2023 is supported until 2029-06-30.",
  "replacement": "Amazon Linux 2023",
  "deadline": "2026-06-30",
  "sources": [
    {
      "title": "Amazon Linux 2 release notes",
      "url": "https://docs.aws.amazon.com/AL2/latest/relnotes/relnotes-al2.html",
      "accessedAt": "2026-10-30"
    },
    {
      "title": "Amazon Linux 2023 release cadence",
      "url": "https://docs.aws.amazon.com/linux/al2023/ug/release-cadence.html",
      "accessedAt": "2026-10-30"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-30",
    "reviewedAt": "2026-10-30",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Amazon Linux 2023 is a separate major release: rebuild the host rather than upgrading in place.",
      "Confirm installed packages and agents are available for Amazon Linux 2023 before switching."
    ],
    "steps": [
      {
        "id": "upgrade-host",
        "title": "Replace the Amazon Linux host",
        "instructions": "Launch a replacement host on Amazon Linux 2023 from the same configuration, then move traffic to it.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "cat /etc/system-release",
        "purpose": "Confirm the host reports Amazon Linux 2023."
      },
      {
        "command": "dnf check-update",
        "purpose": "Check that package updates resolve on the new host."
      }
    ]
  }
}
