{
  "schemaVersion": "ebb.rule.v1",
  "id": "database.aws-rds-postgres.end-of-support-10",
  "ecosystem": "database",
  "purl": "pkg:generic/aws-rds/postgres",
  "affectedVersions": "vers:intdot/>=10|<11",
  "event": "end-of-support",
  "severity": "high",
  "title": "RDS for PostgreSQL 10 is past end of standard support",
  "summary": "AWS ended standard support for RDS for PostgreSQL 10 in April 2023 (AWS publishes only the month). RDS Extended Support was not offered for this version, so it receives no further RDS security or bug fixes. Upgrade to PostgreSQL 15 or later.",
  "replacement": "PostgreSQL 15 or later",
  "sources": [
    {
      "title": "Release calendars for Amazon RDS for PostgreSQL",
      "url": "https://docs.aws.amazon.com/AmazonRDS/latest/PostgreSQLReleaseNotes/postgresql-release-calendar.html",
      "accessedAt": "2026-10-30"
    },
    {
      "title": "Using Amazon RDS Extended Support",
      "url": "https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html",
      "accessedAt": "2026-10-30"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-30",
    "reviewedAt": "2026-10-30",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "A major version upgrade on RDS or Aurora is a separate maintenance action; RDS does not apply it automatically, and changing the engine version back is not a rollback.",
      "Take a snapshot before a major version upgrade: the change cannot be undone in place.",
      "Extended Support keeps the instance or cluster running past the end of standard support for a fee; it does not replace moving to a supported major."
    ],
    "steps": [
      {
        "id": "back-up-data",
        "title": "Take a snapshot",
        "instructions": "Take a manual RDS snapshot of every reported instance or cluster and verify that it can be restored.",
        "targets": "all"
      },
      {
        "id": "upgrade-engine",
        "title": "Upgrade to a supported major",
        "instructions": "Upgrade with ModifyDBInstance or ModifyDBCluster and AllowMajorVersionUpgrade, or restore the snapshot into a new instance or cluster on PostgreSQL 15 or later and move the application connection string to it.",
        "targets": "declaration"
      },
      {
        "id": "raise-declared-version",
        "title": "Raise the declared version",
        "instructions": "Change engine_version in every aws_db_instance, aws_rds_cluster, Compose, and Helm value that runs this database, not only the reported object.",
        "targets": "all"
      },
      {
        "id": "align-clients",
        "title": "Check clients and extensions",
        "instructions": "Update database drivers, ORMs, extensions, and parameter groups that assume the old major version.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "terraform plan",
        "purpose": "Review the plan and confirm the engine_version change is intended and is the only database change."
      },
      {
        "command": "docker compose config",
        "purpose": "Confirm any local Compose service that mirrors this database is valid and uses an image tag that matches PostgreSQL 15 or later."
      },
      {
        "command": "aws rds describe-db-instances --query \"DBInstances[?Engine=='postgres'].[DBInstanceIdentifier,EngineVersion]\" --output table",
        "purpose": "Confirm each reported DB instance now reports a supported engine version."
      }
    ]
  }
}
