{
  "schemaVersion": "ebb.rule.v1",
  "id": "database.aws-rds-postgres.scheduled-end-of-support-14",
  "ecosystem": "database",
  "purl": "pkg:generic/aws-rds/postgres",
  "affectedVersions": "vers:intdot/>=14|<15",
  "event": "scheduled-end-of-life",
  "severity": "low",
  "title": "RDS for PostgreSQL 14 reaches end of standard support on 2027-02-28",
  "summary": "AWS ends standard support for RDS for PostgreSQL 14 on 2027-02-28. RDS Extended Support may keep it running for a fee through 2030-02-28. Upgrade to PostgreSQL 16 or later before then.",
  "replacement": "PostgreSQL 16 or later",
  "deadline": "2027-02-28",
  "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 16 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 16 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."
      }
    ]
  }
}
