Skip to content

Commit

Permalink
Reduce Likelihood of Duplicate Dependency Graph Update Workflow PRs (#…
Browse files Browse the repository at this point in the history
…1379)

* Run recocop earlier

* Update test snapshot

* Move to 3 am
  • Loading branch information
kelvin-chappell authored Jan 6, 2025
1 parent 3e6d6e6 commit 5e8f2fd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
48 changes: 24 additions & 24 deletions packages/cdk/lib/__snapshots__/service-catalogue.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand All @@ -20417,7 +20417,7 @@ spec:
},
"Type": "AWS::Events::Rule",
},
"cloudbustercloudbustercron309MONFRI0AllowEventRuleServiceCataloguecloudbuster82FA89E4F5116C2E": {
"cloudbustercloudbustercron03MONFRI0AllowEventRuleServiceCataloguecloudbuster82FA89E47F529A44": {
"Properties": {
"Action": "lambda:InvokeFunction",
"FunctionName": {
Expand All @@ -20429,7 +20429,7 @@ spec:
"Principal": "events.amazonaws.com",
"SourceArn": {
"Fn::GetAtt": [
"cloudbustercloudbustercron309MONFRI0A90AE33E",
"cloudbustercloudbustercron03MONFRI086370CEA",
"Arn",
],
},
Expand Down Expand Up @@ -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": {
Expand All @@ -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": [
Expand Down
4 changes: 2 additions & 2 deletions packages/cdk/lib/service-catalogue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5e8f2fd

Please sign in to comment.