π‘οΈ AWS ElastiCache Redis Cluster automatic backups are not enabledπ’
- Contextual name: π‘οΈ Redis Cluster automatic backups are not enabledπ’
- ID:
/ce/ca/aws/elasticache/redis-cluster-automatic-backup - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- AWS Security Hub: [ElastiCache.1] ElastiCache (Valkey and Redis OSS) clusters should have automatic backups enabled
Descriptionβ
Descriptionβ
This policy identifies AWS ElastiCache Clusters for Redis OSS and Valkey that do not have automatic backups enabled. Automatic backups are considered enabled when the snapshot retention period is set to a value greater than zero.
Rationaleβ
Enabling automatic backups allows ElastiCache to create daily snapshots of your Redis or Valkey cluster and retain them for a defined period. These snapshots can be used to restore the cluster to a known good state in the event of data corruption, accidental deletion, or cluster failure, significantly reducing data loss and downtime.
Impactβ
Enabling automatic backups may slightly increase storage costs and can introduce brief latency during snapshot creation.
Auditβ
This policy flags an AWS ElastiCache Cluster for Redis as
INCOMPLIANTifSnapshot Retention Limitis set to 0.ElastiCache Clusters for Memcached are marked as
INAPPLICABLE.
Remediationβ
Remediationβ
Enable Automatic Backupsβ
From Command Lineβ
For a Redis cluster with cluster mode enabled (Replication Group):
aws elasticache modify-replication-group \
--replication-group-id {{replication-group-id}} \
--snapshot-retention-limit {{7}} \
--apply-immediatelyFor a Redis cluster with cluster mode disabled (Single Node or Non-Clustered):
aws elasticache modify-cache-cluster \
--cache-cluster-id {{cache-cluster-id}} \
--snapshot-retention-limit {{7}} \
--apply-immediatelyAdjust the
--snapshot-retention-limitvalue to meet your organizationβs backup retention policy.Using
--apply-immediatelyapplies changes immediately; omit it to defer the change until the next maintenance window.