{
  "schemaVersion": "ebb.rule.v1",
  "id": "database.aws-elasticache-redis.scheduled-end-of-support-6",
  "ecosystem": "database",
  "purl": "pkg:generic/aws-elasticache/redis",
  "affectedVersions": "vers:intdot/>=6|<7",
  "event": "scheduled-end-of-life",
  "severity": "low",
  "title": "ElastiCache for Redis OSS 6 reaches end of standard support on 2027-01-31",
  "summary": "AWS ends standard support for ElastiCache for Redis OSS 6 on 2027-01-31. RDS Extended Support may keep it running for a fee through 2030-01-31. Upgrade to Valkey or Redis OSS 7.1 or later before then.",
  "replacement": "Valkey or Redis OSS 7.1 or later",
  "deadline": "2027-01-31",
  "sources": [
    {
      "title": "Engine versions and upgrading in ElastiCache",
      "url": "https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/engine-versions.html",
      "accessedAt": "2026-10-30"
    },
    {
      "title": "ElastiCache Extended Support",
      "url": "https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/extended-support.html",
      "accessedAt": "2026-10-30"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-30",
    "reviewedAt": "2026-10-30",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "An ElastiCache engine upgrade is an in-place modification; the cache is unavailable while nodes are replaced, and restoring a cluster-mode-disabled cache over a newer engine is not a rollback.",
      "Take a manual backup before the change and verify that it can be restored.",
      "Extended Support keeps the cache running past the end of standard support for a fee; it does not replace moving to Valkey or Redis OSS 7.1 or later."
    ],
    "steps": [
      {
        "id": "back-up-data",
        "title": "Take a backup",
        "instructions": "Take a manual ElastiCache backup of every reported cluster and verify that it can be restored.",
        "targets": "all"
      },
      {
        "id": "upgrade-engine",
        "title": "Upgrade the engine",
        "instructions": "Modify the cache cluster or replication group to a supported engine version, or create a new cache on Valkey or Redis OSS 7.1 or later and move clients to it.",
        "targets": "declaration"
      },
      {
        "id": "raise-declared-version",
        "title": "Raise the declared version",
        "instructions": "Change engine_version in every aws_elasticache_cluster and aws_elasticache_replication_group block, Compose service, and Helm value that runs this cache.",
        "targets": "all"
      },
      {
        "id": "align-clients",
        "title": "Check clients and parameter groups",
        "instructions": "Update Redis clients, connection strings, and parameter groups that assume the old engine version.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "terraform plan",
        "purpose": "Review the plan and confirm the engine_version change is intended and is the only cache change."
      },
      {
        "command": "docker compose config",
        "purpose": "Confirm any local Compose service that mirrors this cache is valid and uses an image tag that matches Valkey or Redis OSS 7.1 or later."
      },
      {
        "command": "aws elasticache describe-cache-clusters --query \"CacheClusters[?Engine=='redis'].[CacheClusterId,EngineVersion]\" --output table",
        "purpose": "Confirm each reported cache cluster now reports a supported Redis OSS engine version."
      }
    ]
  }
}
