Skip to content

Backup plan min frequency and min retention check

Checks if a backup plan has a backup rule that satisfies the required frequency and retention period(35 Days). The rule is non-compliant if recovery points are not created at least as often as the specified frequency or expire before the specified period.

How to fix

Attribute rule[0].lifecycle[0].delete_after of aws_backup_plan must be non-empty.

Implementation options

Choose the option that matches how you manage Terraform. All options satisfy this control.

Option 1: Terraform AWS provider resources

If you manage resources directly, configure the relevant Terraform AWS provider resources to meet this control. See docs for the resources involved: aws_backup_plan.

resource "aws_backup_plan" "this" {
  name = "pofix-example-backup-plan"

  rule {
    lifecycle {
      delete_after = 35
    }
    rule_name         = "pofix-example-rule"
    target_vault_name = "Default"
  }
}
Which option should I choose?
  • Compliance.tf module (recommended): controls enforced by default and mapped to frameworks.
  • Open source module (terraform-aws-modules): compatible by design with compliance.tf. Same variable names for an easy, low-change migration path when you are ready.
  • Terraform AWS provider resources: manage Terraform resources directly.

Tool mappings

Use these identifiers to cross-reference this control across tools, reports, and evidence.

  • Compliance.tf (CTF) Control: backup_plan_min_retention_35_days

  • AWS Config Managed Rules: BACKUP_PLAN_MIN_FREQUENCY_AND_MIN_RETENTION_CHECK, BACKUP_RECOVERY_POINT_MINIMUM_RETENTION_CHECK

  • Powerpipe Control: aws_compliance.control.backup_plan_min_retention_35_days