Description
Setting snapshotRetentionLimit to 0 disables automatic snapshots for an ElastiCache Redis cluster. Check whether the cache holds state you need to recover, such as sessions or queued work.
Potential impact
Rebuilding from another source takes time. Without a usable snapshot, state held only in the cache may be lost.
Remediation
Set snapshotRetentionLimit to a supported number of days, at least 1, that covers your recovery window. Check for a completed snapshot and test restoring it into a new cache.
Examples
The excerpts show retention only. Supply the node type and the other cluster settings for your deployment.
Before
resources:
example:
type: aws:elasticache:Cluster
properties:
engine: redis
snapshotRetentionLimit: 0
After
resources:
example:
type: aws:elasticache:Cluster
properties:
engine: redis
snapshotRetentionLimit: 5
The example keeps snapshots for five days. Restoring a snapshot recovers its contents as of capture time. Plan how to bring that cache back into service.