Ensure Amazon ElastiCache Redis clusters have automatic backup turned on

Error: Amazon ElastiCache Redis clusters do not have automatic backup turned on

Policy ID: BC_AWS_GENERAL_45
Checkov Check ID: CKV_AWS_134
Severity: LOW

Amazon ElastiCache Redis clusters do not have automatic backup turned on

Description

Check if the Amazon ElastiCache Redis clusters have automatic backup turned on.

Fix - Buildtime

Terraform

  • Resource: aws_elasticache_cluster
  • Argument: snapshot_retention_limit
resource "aws_elasticache_cluster" "example" {
  ...
+ snapshot_retention_limit = 5
}

Did this page help you?