AWS Config: can't remediate backup-plan-min-frequency-and-min-retention-check

0

Hi all,

I could not figure out how to remediate backup-plan-min-frequency-and-min-retention-check rule. This is my Backup Plan configuration:

    "BackupPlanRule": [
        {
          "TargetBackupVault": "dev-backup",
          "RuleName": "dev-backup-plan-monthly",
          "ScheduleExpression": "cron(0 0 ? * SUN#1 *)",
          "StartWindowMinutes": 60,
          "CompletionWindowMinutes": 180,
          "Lifecycle": {
            "DeleteAfterDays": 93
          },
          "RecoveryPointTags": {},
          "CopyActions": [],
          "EnableContinuousBackup": false,
          "ScheduleExpressionTimezone": "EST"
        }
      ],

Appreciate any input on how to make the plan pass.

Thanks,

Trung

2 Risposte
1
Risposta accettata

Found the issue, the cron expression indicates that the backup frequency could be more than 31 days, i.g.: 1st Sunday of a month to the next. Rule works as expected.

Trung
con risposta 3 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa
1

t appears you have set up a rule (dev-backup-plan-monthly) that triggers a backup on the first Sunday of each month. The retention period for these backups is set to 93 days. In order to change the backup frequency cron(0 0 ? * SUN#1 *) , you need to cron job expression . PLease use to this tools at what time you need to schedule for backup frequency :https://crontab.guru/

profile picture
Jagan
con risposta 3 mesi fa
  • Thanks for your feedbacks. The cron is exactly what I need. My question is why that backup plan doesn't pass the rule. Config rule has input parameters set as below:

    • requiredFrequencyValue: 31
    • requriedFrequencyUnit: days
    • requiredRetentionDays: 31

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande