Automated backups are disabled for an RDS instance

Set automated-backup retention for ordinary RDS instances to meet recovery objectives.

Description

On a non-Aurora RDS DB instance, backup_retention_period: 0 disables automated backups. Aurora always backs up its data and sets retention at the cluster level.

Potential impact

With automated backups off, RDS cannot restore this instance to a point in time from those backups. Existing manual snapshots remain usable for the points they captured.

Remediation

Choose a supported retention period of at least one day. Moving between zero and a positive value causes an outage. Schedule the change, then test a restore to a new instance.

Examples

The tasks change an existing instance from zero to five days of retention. Creating an instance requires additional settings.

Before

yaml
- name: Set RDS instance backup retention
  amazon.aws.rds_instance:
    db_instance_identifier: ansible-test-db-instance
    backup_retention_period: 0

After

yaml
- name: Set RDS instance backup retention
  amazon.aws.rds_instance:
    db_instance_identifier: ansible-test-db-instance
    backup_retention_period: 5

References