diff --git a/packages/cdk/lib/__snapshots__/service-catalogue.test.ts.snap b/packages/cdk/lib/__snapshots__/service-catalogue.test.ts.snap index a5cd5f5be..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", }, - "cloudbustercloudbustercron309MONFRI0A90AE33E": { + "cloudbustercloudbustercron03MONFRI086370CEA": { "Properties": { - "ScheduleExpression": "cron(30 9 ? * MON-FRI *)", + "ScheduleExpression": "cron(0 3 ? * MON-FRI *)", "State": "ENABLED", "Targets": [ { @@ -20417,7 +20417,7 @@ spec: }, "Type": "AWS::Events::Rule", }, - "cloudbustercloudbustercron309MONFRI0AllowEventRuleServiceCataloguecloudbuster82FA89E4F5116C2E": { + "cloudbustercloudbustercron03MONFRI0AllowEventRuleServiceCataloguecloudbuster82FA89E47F529A44": { "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { @@ -20429,7 +20429,7 @@ spec: "Principal": "events.amazonaws.com", "SourceArn": { "Fn::GetAtt": [ - "cloudbustercloudbustercron309MONFRI0A90AE33E", + "cloudbustercloudbustercron03MONFRI086370CEA", "Arn", ], }, @@ -24221,25 +24221,7 @@ spec: "Type": "AWS::SecretsManager::Secret", "UpdateReplacePolicy": "Delete", }, - "repocoprepocopcron309MONFRI042F648A2": { - "Properties": { - "ScheduleExpression": "cron(30 9 ? * MON-FRI *)", - "State": "ENABLED", - "Targets": [ - { - "Arn": { - "Fn::GetAtt": [ - "repocop20553EB8", - "Arn", - ], - }, - "Id": "Target0", - }, - ], - }, - "Type": "AWS::Events::Rule", - }, - "repocoprepocopcron309MONFRI0AllowEventRuleServiceCataloguerepocop7BEB58922EC16074": { + "repocoprepocopcron03MONFRI0AllowEventRuleServiceCataloguerepocop7BEB5892318F26C8": { "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { @@ -24251,13 +24233,31 @@ spec: "Principal": "events.amazonaws.com", "SourceArn": { "Fn::GetAtt": [ - "repocoprepocopcron309MONFRI042F648A2", + "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 071e57dcd..a140415e0 100644 --- a/packages/cdk/lib/service-catalogue.ts +++ b/packages/cdk/lib/service-catalogue.ts @@ -243,8 +243,8 @@ export class ServiceCatalogue extends GuStack { const prodSchedule = Schedule.cron({ weekDay: 'MON-FRI', - hour: '9', - minute: '30', + hour: '3', + minute: '0', }); const securityAlertSchedule = nonProdSchedule ?? prodSchedule;