RDS automatic backup is disabled Affecting RDS service in AWS


Severity

0.0
medium
0
10
Severity Framework
Snyk CCSS
Rule category
General/ Backup

Is your environment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
Frameworks
AWS-Well-ArchitectedCIS-ControlsCSA-CCMGDPRHIPAAISO-27001PCI-DSSSOC-2
  • Snyk IDSNYK-CC-00143
  • creditSnyk Research Team

Description

RDS automated backups are enabled by setting the backup retention period to a positive nonzero value. Backups should not be retained longer than is strictly necessary. When retention is properly configured, malicious individuals will be unable to retrieve data when it is no longer needed.

How to fix?

Ensure that the aws_db_instance or aws_rds_cluster backup_retention_period attribute is set to a nonzero value.

Example Configuration

resource "aws_db_instance" "example" {
  backup_retention_period = 5
  # other required fields here
}
resource "aws_rds_cluster" "example" {
  backup_retention_period = 3
  # other required fields here
}