Skip to main content

Triage AWS RDS DB Instances should automatically create backups AUTO_BACKUP_NOT_ENABLED

  1. Configure AWS RDS DB Instances should automatically create backups
  2. Use Case for AWS RDS DB Instances should automatically create backups
  3. Triage Guides by Violation Type
    1. Triage AWS RDS DB Instances should automatically create backups AUTO_BACKUP_NOT_ENABLED

Why should I care about fixing this issue?

To get started on understanding RDS Auto-backup, read our use-case page.

What is the data source for this policy?

This policy relies on a call to rds:DescribeDBInstances. If the response of the property BackupRetentionPeriod is 0, then a violation is opened by the policy.

Does this policy scan on a schedule? If so, when?

No, it's triggered when changes to matching resources are detected.

How do I enable auto-backups using AWS Console?

See Enabling automated backups in the AWS Documentation

How do I enable auto-backups using CloudFormation?

AWS::RDS::DBInstance

Note that the field is not required and the default value is 1.

 Type: AWS::RDS::DBInstance
Properties:
+ BackupRetentionPeriod: 35

How do I enable auto-backups using Terraform?

aws_db_instance

Note that the field is not required, may not be present, and the default value is 0 (backups disabled).

 resource "aws_db_instance" "example" {
- backup_retention_period = 0
+ backup_retention_period = 35
}

How do I enable auto-backups using AWS CLI?

See the AWS CLI expandable section on Enabling automated backups

When is it appropriate to mark this violation as "by design"?

To get started on understanding RDS Auto-backup, read our use-case page.