From 4cfad5f2741761cccc287ad094db46917daab411 Mon Sep 17 00:00:00 2001 From: jay72487 <119831403+jay72487@users.noreply.github.com> Date: Fri, 5 Jan 2024 14:51:12 +1100 Subject: [PATCH] updated current connections from task to warning (#116) Co-authored-by: jay verma --- lib/cfnguardian/resources/elasticache_replication_group.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cfnguardian/resources/elasticache_replication_group.rb b/lib/cfnguardian/resources/elasticache_replication_group.rb index cbb5d01..2843d0c 100644 --- a/lib/cfnguardian/resources/elasticache_replication_group.rb +++ b/lib/cfnguardian/resources/elasticache_replication_group.rb @@ -23,12 +23,12 @@ def default_alarms @alarms.push(alarm) alarm = CfnGuardian::Models::ElastiCacheReplicationGroupAlarm.new(@resource) - alarm.name = 'CurrentConnectionsTask' + alarm.name = 'CurrentConnectionsWarning' alarm.metric_name = 'CurrConnections' alarm.comparison_operator = 'GreaterThanThreshold' alarm.threshold = 50000 alarm.evaluation_periods = 10 - alarm.alarm_action = 'Task' + alarm.alarm_action = 'Warning' @alarms.push(alarm) alarm = CfnGuardian::Models::ElastiCacheReplicationGroupAlarm.new(@resource)