From 14e3fa35f4a070842531f422979036a7ee6de89c Mon Sep 17 00:00:00 2001 From: Kelvin Chappell Date: Mon, 6 Jan 2025 14:22:56 +0000 Subject: [PATCH] Move to 3 am --- .../service-catalogue.test.ts.snap | 48 +++++++++---------- packages/cdk/lib/service-catalogue.ts | 2 +- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/packages/cdk/lib/__snapshots__/service-catalogue.test.ts.snap b/packages/cdk/lib/__snapshots__/service-catalogue.test.ts.snap index cec8ec9af..4c9b09f13 100644 --- a/packages/cdk/lib/__snapshots__/service-catalogue.test.ts.snap +++ b/packages/cdk/lib/__snapshots__/service-catalogue.test.ts.snap @@ -20399,9 +20399,9 @@ spec: }, "Type": "AWS::IAM::Role", }, - "cloudbustercloudbustercron07MONFRI028B0F781": { + "cloudbustercloudbustercron03MONFRI086370CEA": { "Properties": { - "ScheduleExpression": "cron(0 7 ? * MON-FRI *)", + "ScheduleExpression": "cron(0 3 ? * MON-FRI *)", "State": "ENABLED", "Targets": [ { @@ -20417,7 +20417,7 @@ spec: }, "Type": "AWS::Events::Rule", }, - "cloudbustercloudbustercron07MONFRI0AllowEventRuleServiceCataloguecloudbuster82FA89E4693980BB": { + "cloudbustercloudbustercron03MONFRI0AllowEventRuleServiceCataloguecloudbuster82FA89E47F529A44": { "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { @@ -20429,7 +20429,7 @@ spec: "Principal": "events.amazonaws.com", "SourceArn": { "Fn::GetAtt": [ - "cloudbustercloudbustercron07MONFRI028B0F781", + "cloudbustercloudbustercron03MONFRI086370CEA", "Arn", ], }, @@ -24221,25 +24221,7 @@ spec: "Type": "AWS::SecretsManager::Secret", "UpdateReplacePolicy": "Delete", }, - "repocoprepocopcron07MONFRI08C03526D": { - "Properties": { - "ScheduleExpression": "cron(0 7 ? * MON-FRI *)", - "State": "ENABLED", - "Targets": [ - { - "Arn": { - "Fn::GetAtt": [ - "repocop20553EB8", - "Arn", - ], - }, - "Id": "Target0", - }, - ], - }, - "Type": "AWS::Events::Rule", - }, - "repocoprepocopcron07MONFRI0AllowEventRuleServiceCataloguerepocop7BEB58926BBB25F1": { + "repocoprepocopcron03MONFRI0AllowEventRuleServiceCataloguerepocop7BEB5892318F26C8": { "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { @@ -24251,13 +24233,31 @@ spec: "Principal": "events.amazonaws.com", "SourceArn": { "Fn::GetAtt": [ - "repocoprepocopcron07MONFRI08C03526D", + "repocoprepocopcron03MONFRI0E07FE560", "Arn", ], }, }, "Type": "AWS::Lambda::Permission", }, + "repocoprepocopcron03MONFRI0E07FE560": { + "Properties": { + "ScheduleExpression": "cron(0 3 ? * MON-FRI *)", + "State": "ENABLED", + "Targets": [ + { + "Arn": { + "Fn::GetAtt": [ + "repocop20553EB8", + "Arn", + ], + }, + "Id": "Target0", + }, + ], + }, + "Type": "AWS::Events::Rule", + }, "servicecatalogueCluster5FC34DC5": { "Properties": { "ClusterSettings": [ diff --git a/packages/cdk/lib/service-catalogue.ts b/packages/cdk/lib/service-catalogue.ts index 3b5ff5d62..a140415e0 100644 --- a/packages/cdk/lib/service-catalogue.ts +++ b/packages/cdk/lib/service-catalogue.ts @@ -243,7 +243,7 @@ export class ServiceCatalogue extends GuStack { const prodSchedule = Schedule.cron({ weekDay: 'MON-FRI', - hour: '7', + hour: '3', minute: '0', });