From 180c2af04f98703a24b0e58568489d229d3d2ff3 Mon Sep 17 00:00:00 2001 From: Hamza Khan Date: Tue, 2 Sep 2025 10:50:52 +0100 Subject: [PATCH] NRL-1587 fix cron job invalid expression --- terraform/account-wide-infrastructure/dev/aws-backup.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/terraform/account-wide-infrastructure/dev/aws-backup.tf b/terraform/account-wide-infrastructure/dev/aws-backup.tf index f4aec0652..8fe8ace39 100644 --- a/terraform/account-wide-infrastructure/dev/aws-backup.tf +++ b/terraform/account-wide-infrastructure/dev/aws-backup.tf @@ -159,7 +159,7 @@ module "source" { }, { "name" : "monthly" - "schedule" : "cron(30 0 ? * 4#1)" # first Thursday each month from 00:30 + "schedule" : "cron(30 0 ? * 5#1 *)" # first Thursday each month from 00:30 "copy_action" : [{ "cold_storage_after" : 3, "delete_after" : 100 # ensures there will always be min 3 @@ -170,8 +170,8 @@ module "source" { }, { - "name" : "weekly" # overlaps with monthly - "schedule" : "cron(30 0 ? * 4)" # every Thursday from 00:30 to precede releases + "name" : "weekly" # overlaps with monthly + "schedule" : "cron(30 0 ? * 5 *)" # every Thursday from 00:30 to precede releases "copy_action" : [{ "cold_storage_after" : 14 # ensures 2 warm including one from previous release "delete_after" : 105