From 9e4ccf62838d9400c51f40e31c948c43f8ac6cc2 Mon Sep 17 00:00:00 2001 From: ingalls Date: Fri, 26 Apr 2024 13:24:38 -0600 Subject: [PATCH] Update CHANGELOG --- CHANGELOG.md | 4 ++++ index.js | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5931e6f..092e972 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/index.js b/index.js index 4e012af..e0ed8b1 100644 --- a/index.js +++ b/index.js @@ -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 }); @@ -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; }