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 Antworten
1
Akzeptierte Antwort

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
beantwortet vor 3 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
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
beantwortet vor 3 Monaten
  • 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

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen