Skip to content

Commit

Permalink
chore: make patching more frequent (#732)
Browse files Browse the repository at this point in the history
* chore: make patching more frequent

Signed-off-by: Justin Alvarez <alvajus@amazon.com>

* update test

Signed-off-by: Justin Alvarez <alvajus@amazon.com>

---------

Signed-off-by: Justin Alvarez <alvajus@amazon.com>
  • Loading branch information
pendo324 authored Oct 9, 2024
1 parent 5e39bd7 commit 7383f24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 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 Down Expand Up @@ -49,7 +49,7 @@ export class SSMPatchingStack extends cdk.Stack {
documentVersion: '$LATEST'
}
},
maxErrors: '0',
maxErrors: '100%',
maxConcurrency: '1'
});
}
Expand Down
4 changes: 2 additions & 2 deletions test/ssm-patching-stack.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('SSMPatchingStack', () => {
Cutoff: 0,
Duration: 2,
Name: 'Patching-Window',
Schedule: 'cron(0 3 ? * SUN *)'
Schedule: 'cron(0 8 ? * * *)'
}
});

Expand All @@ -38,7 +38,7 @@ describe('SSMPatchingStack', () => {
template.hasResource('AWS::SSM::MaintenanceWindowTask', {
Properties: {
MaxConcurrency: '1',
MaxErrors: '0',
MaxErrors: '100%',
Name: 'Patch-Task',
Priority: 1,
Targets: [
Expand Down

0 comments on commit 7383f24

Please sign in to comment.