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 95739a2 commit 9e4ccf6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
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.8.0

- :rocket: Enabled `Cloudformation-Drift` Urgent Alarms

### v1.7.0

- :rocket: Add `ReadOnlyAccess` ManagedPolicyArn to CloudFormation Drift Policy
Expand Down
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ const Config = require('@aws-sdk/client-config-service');
const SNS = require('@aws-sdk/client-sns');
const { randomUUID } = require('node:crypto');

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

async function handler() {
const config = new Config.ConfigServiceClient({ region: process.env.AWS_REGION || process.env.AWS_DEFAULT_REGION });
Expand All @@ -13,7 +16,7 @@ async function handler() {
let errs = [];

for (const rule of rules.ConfigRules) {
if (!EnabledRules.includes(rule.ConfigRuleName)) {
if (!Enabled_Urgent_Rules.includes(rule.ConfigRuleName)) {
console.log(`ok - skipping ${rule.ConfigRule}`);
continue;
}
Expand Down

0 comments on commit 9e4ccf6

Please sign in to comment.