AWS Security Hub · ElastiCache
ElastiCache.3: Replication groups should have auto-failover
Written and reviewed by Emnode · Last reviewed
What does AWS Security Hub ElastiCache.3 check?
ElastiCache.3 fails when a Redis replication group has `AutomaticFailoverEnabled` set to false. This is the setting that turns read replicas into genuine high availability rather than just extra read capacity.
Why does ElastiCache.3 matter?
Without automatic failover, a primary node failure during a routine maintenance event does not promote a replica — writes simply fail until someone notices and runs a manual promotion. A textbook-looking setup with a primary and replicas across AZs can silently lack HA for months, paying for redundancy it never actually turns on.
How do I fix ElastiCache.3?
- List replication groups and check `AutomaticFailoverEnabled` for those set to false.
- Ensure each group has at least one read replica, then enable automatic failover with a single modify call on the live group.
- Pair it with Multi-AZ so the promoted replica sits in a different zone from the failed primary.
- Default new replication groups to failover enabled in your IaC so the standard sticks.
Remediation script · bash
# Fix the highest-impact data stores first: enable Multi-AZ on production databases.
for db in $(aws rds describe-db-instances \
--query 'DBInstances[?MultiAZ==`false` && DBClusterIdentifier==null].DBInstanceIdentifier' --output text); do
aws rds modify-db-instance --db-instance-identifier "$db" \
--multi-az --apply-immediately
echo "$db: standby being provisioned in a second AZ"
done
# Span a stateless compute fleet across three AZs, then mirror the set on its load balancer.
aws autoscaling update-auto-scaling-group --auto-scaling-group-name web-tier-asg \
--vpc-zone-identifier "subnet-0aaa1,subnet-0bbb2,subnet-0ccc3"
aws elbv2 set-subnets --load-balancer-arn "$ALB_ARN" \
--subnets subnet-0aaa1 subnet-0bbb2 subnet-0ccc3 Full walkthrough (console steps, edge cases and verification) in the lesson Deploy across multiple Availability Zones.
More ElastiCache controls
- ElastiCache.1 A Redis cluster has no automatic backups
- ElastiCache.2 ElastiCache is not auto-applying minor patches
- ElastiCache.4 Replication groups encrypted at rest
- ElastiCache.5 Replication groups encrypted in transit
- ElastiCache.6 Redis replication groups should have AUTH
- ElastiCache.7 A cluster uses the default subnet group