Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Apr 26, 2024
1 parent a73cd99 commit df99b4f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

## Version History

### v1.9.0

- :rocket: Enable `Certificate-Expiration` Rule & Urgent Alarms

### v1.8.0

- :rocket: Enabled `Cloudformation-Drift` Urgent Alarms
Expand Down
18 changes: 18 additions & 0 deletions cloudformation/lib/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@ import cf from '@openaddresses/cloudfriend';

const resources = {
Resources: {
CertificateExpiration: {
Type: "AWS::Config::ConfigRule",
Properties: {
ConfigRuleName: 'Certificate-Expiration',
Description: "Ensure's ACM Certificates are not about to expire",
InputParameters: {
daysToExpiration: 15
},
MaximumExecutionFrequency: 'TwentyFour_Hours',
Scope: {
ComplianceResourceTypes: [ 'AWS::CertificateManager::Certificate' ],
},
Source: {
SourceIdentifier: 'ACM_CERTIFICATE_EXPIRATION_CHECK',
Owner: 'AWS'
}
}
},
CloudformationDrift: {
Type: "AWS::Config::ConfigRule",
Properties: {
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ const { randomUUID } = require('node:crypto');

const Enabled_Urgent_Rules = [
'Required-Tags',
'Cloudformation-Drift'
'Cloudformation-Drift',
'Certificate-Expiration'
];

async function handler() {
Expand Down

0 comments on commit df99b4f

Please sign in to comment.