Review the AWS ElastiCache Redis OSS engine version

Manage Redis OSS versions according to support lifecycles and security updates

Description

Select a Redis OSS version that meets your patching requirements and falls within the ElastiCache support lifecycle. Check encryption and access controls separately when assessing compliance.

Potential impact

An end-of-life release may miss required fixes. Extended support for eligible releases can also incur extra charges.

Remediation

Check the supported upgrade path from the deployed version and choose a compatible node and parameter group. Prepare a backup, test client and command compatibility, and plan for downtime. After the upgrade, check the running version and application connectivity.

Examples

The historical 2.6.13 release is past end of life and is below the minimum for the illustrated cache.m4.large node. 7.1 is an example target. The excerpts compare version choices without specifying a direct upgrade path.

Before

hcl
resource "aws_elasticache_cluster" "redis_cluster" {
  cluster_id      = "cluster-example"
  engine          = "redis"
  node_type       = "cache.m4.large"
  num_cache_nodes = 1
  engine_version  = "2.6.13"
  port            = 6379
}

After

hcl
resource "aws_elasticache_cluster" "redis_cluster" {
  cluster_id      = "cluster-example"
  engine          = "redis"
  node_type       = "cache.m4.large"
  num_cache_nodes = 1
  engine_version  = "7.1"
  port            = 6379
}

References