Skip to content

Commit

Permalink
chore: make patching more frequent
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Alvarez <[email protected]>
  • Loading branch information
pendo324 committed Oct 8, 2024
1 parent 5e39bd7 commit c32a3e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ssm-patching-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export class SSMPatchingStack extends cdk.Stack {
allowUnassociatedTargets: false,
cutoff: 0,
duration: 2,
// Every Sunday at 3 AM
schedule: 'cron(0 3 ? * SUN *)'
// Every day at 8 AM UTC
schedule: 'cron(0 8 ? * * *)'
});

const maintenanceTarget = new CfnMaintenanceWindowTarget(this, 'MaintenanceWindowTarget', {
Expand All @@ -23,7 +23,7 @@ export class SSMPatchingStack extends cdk.Stack {
resourceType: 'INSTANCE',
targets: [
{
key: 'tag:PVRE-Reporting',
key: 'tag:SSM-Patching',
values: ['SSM']
}
]
Expand All @@ -49,7 +49,7 @@ export class SSMPatchingStack extends cdk.Stack {
documentVersion: '$LATEST'
}
},
maxErrors: '0',
maxErrors: '100%',
maxConcurrency: '1'
});
}
Expand Down

0 comments on commit c32a3e3

Please sign in to comment.