From a76c83564cd6b83ca48ba40471ff2468f8b64fed Mon Sep 17 00:00:00 2001 From: Jared Brook Date: Mon, 3 Oct 2022 18:03:08 +1100 Subject: [PATCH] Update efs burst credit alarm based on metspec recommendation --- lib/cfnguardian/resources/elastic_file_system.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/cfnguardian/resources/elastic_file_system.rb b/lib/cfnguardian/resources/elastic_file_system.rb index c7198b8..731a317 100644 --- a/lib/cfnguardian/resources/elastic_file_system.rb +++ b/lib/cfnguardian/resources/elastic_file_system.rb @@ -17,10 +17,8 @@ def default_alarms alarm.metric_name = 'BurstCreditBalance' alarm.comparison_operator = 'LessThanThreshold' alarm.statistic = 'Minimum' - alarm.threshold = 1000000000000 - alarm.evaluation_periods = 5 - alarm.treat_missing_data = 'notBreaching' - alarm.datapoints_to_alarm = 5 + alarm.threshold = 1000 + alarm.evaluation_periods = 1 @alarms.push(alarm) alarm = CfnGuardian::Models::ElasticFileSystemAlarm.new(@resource, 'Total')